-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
button hitbox is offset from where the button actually is #331
Comments
update: after moving the button around a lot, it seems like the closer the "visual button" is closer to the bottom right corner, the larger the offset between the "visual button" and the "hitbox button". Also, they always seem to line up perfectly with the top left corner, so I think it might be a scaling issue. |
Update 2: I believe the problem may be in the inconsistencies between |
Thanks for your research! It probably was caused by this PR: not-fl3/miniquad#248 Unfortunately, it is one of those rare bugs that do not reproduce under wine for me and I do not have a real windows machine right now. |
After messing around by resizing and moving the window around a bit, I found out that both |
I believe I've also seen this issue on a linux system now |
Yes, under Ubuntu at least, enabling "Fractional Scaling" in the settings and selecting a non-100% scale causes this issue |
Bisecting shows faf5c7f as the relevant change, so presumably the input values were missed when implementing hidpi |
Thank you very much for your time on the bisecting, good catch! Feel free to reopen if the problem will still happen after the fix. |
using this code
This shows up
The yellow rectangle was added in by me to show approximately where the button could be clicked, and it doesn't line up with the actual button
The hitbox (clickbox?) seems to have different offsets if I move the button to different parts of the screen. However, it always offsets towards the top left of the button.
any help?
The text was updated successfully, but these errors were encountered: