Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.64k stars 818 forks source link

Mouse clicks are far from target location at 150% display scaling #3744

Open MDSchechtman opened 4 months ago

MDSchechtman commented 4 months ago

Expected Behaviour

Clicking an object, such as a star, selects that object.

Actual Behaviour

Clicking appears to be offset by a large amount, resulting in distant objects being selected when trying to select a specific target such as a star.

Steps to reproduce

Click a large bright star. Notice that it does not select, and some other star might have been selected instead.

Video: https://www.youtube.com/watch?v=JFXye0eKMHw

I assume this is related to the combination of Arch+KDE+wayland on a 4k monitor with display scaling, and if anyone has advice I would appreciate it.

System

Logfile

log.txt

gzotti commented 4 months ago

Duplicate of #3733

github-actions[bot] commented 4 months ago

This issue already exists.

MDSchechtman commented 4 months ago

@gzotti This issue is not a duplicate of #3733.

My issue does not only occur at high zoom, but at any zoom. We're not talking about nearby stars being selected, but stars roughly three to five inches away on my screen.

Please see the linked video.

alex-w commented 4 months ago

@MDSchechtman could you’re checking the behavior with 100% and 200% scaling of the screen?

MDSchechtman commented 4 months ago

@alex-w No issue at 100% or 200% display scaling.

I did find something else interesting though: initially when Stellarium opens at 150% display scaling, clicking will be accurate but only as long as the window is not resized. After resizing (or going into full screen), clicking is wildly off again and will remain so until the application is restarted.

Resizing the window at 100% and 200% scaling were still fine.

Updated the title.

Carz10 commented 2 months ago

I can confirm the same behaviour in my Windows 10 set up:

I hope this adds any value to the bugfixer.

Carsten