Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI click on mac fullscreen registered below expected point #40061

Closed
n-smits opened this issue Jul 2, 2020 · 6 comments · Fixed by #52374
Closed

UI click on mac fullscreen registered below expected point #40061

n-smits opened this issue Jul 2, 2020 · 6 comments · Fixed by #52374

Comments

@n-smits
Copy link

n-smits commented Jul 2, 2020

Godot version: 3.2.2.stable.official
OS/device including version: mac catalina (10.15.5)

Issue description:
UI click registered below expected point (see gif below). The issue is only on fullscreen (I don't mean maximized), and doesn't happen at all otherwise, including on maximized.

"Click accuracy" get progressively worse down screen Y axis. So on the bottom of the screen, (supposing default layout) on e.g. Scene, click needs to be way on top of a button to be correct, while on top of screen, e.g. FileSystem, it works almost as expected. Problem is consistent with left and right click and drag, and across all UI elements (buttons, lists, dropdowns etc.) It's pretty much impossible not to misclick.

Apologies if already logged somewhere, couldn't find any.
Will investigate further upon request.

Screen Recording 2020-07-02 at 19 01 32

Steps to reproduce: fresh godot install. Since it's a gui problem, no reproduction project.

@Zireael07
Copy link
Contributor

What's your GPU and monitor? Is it retina?

@mbrlabs
Copy link
Contributor

mbrlabs commented Jul 2, 2020

This looks similar to this issue: #38778
Did you change the default font or text size of the editor ui? If so, try restoring the default values and see if it fixes it.

@n-smits
Copy link
Author

n-smits commented Jul 3, 2020

Noticed the following:

  • issue occurs only when app is in full screen (I don't mean maximized but mac full screen) - removing full screen removes the issue completely it seems. This also made the issue much less of a problem, will update issue.
  • clicks are correct on menu bar, and get progressively worse down the screen (Y axis). So, using default view, Scene list is almost good, while File System is very off. I confirm this by moving File System view up, and it behaves better. That would suggest this really is about retina, i.e. 2x pixel density?

Requested info:

  • GPU is Radeon Pro Vega 48. Monitor is retina.
  • As for UI text size, it is default. (Literally nothing was changed within the editor except the window background color, I'm a first time user)

Regarding #38778, there is no problem with text, just buttons and lists. (Clicks in script editor registered as expected, I opened a script that had more lines than fit on screen and didn't scroll to bottom, as suggested by comment). Edit: no wait, the problem is with script editing as well (when in fullscreen). And changing smooth scrolling had no effect (tried restarting / hard quitting editor between tries).

@n-smits n-smits changed the title UI click registered below expected point UI click on mac fullscreen registered below expected point Jul 3, 2020
@snougo
Copy link

snougo commented Jul 4, 2020

I can't reproduce this issue in 3.2.2 stable on macOS 10.13.6(both GLES2 and GLES3), but I used a 1920x1080 external monitor to test, so I am not sure is it still same with the built-in monitor(because my built-in monitor was broken)
My device is a 2013 late 13-inch Macbook Pro with Intel Iris GPU

@idrohr
Copy link

idrohr commented Jul 9, 2020

I'm also getting this issue on a 13-inch retina, early 2015 MacBook pro running 10.15.4. Problem only persists in fullscreen

@danielkariv
Copy link
Contributor

I think I got it fixed, sent the PR with the changes I made (#51718).
It seems that godot won't resize the screen when changing from or to fullscreen, and this is what lead to this weird behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants