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

Correct order of mouse/tap events to ImGui for correct touch event handling #760

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

Xadiant
Copy link

@Xadiant Xadiant commented Dec 13, 2022

The mouse worked fine, because mouse movement events were updated along the way, but touch events do not do that, so imgui was processing button pushes at the previous tap's location resulting in several issues including getting stuck int he dragging window state like this:

screen-20221213-130231.mp4

This PR fixes that issue, and likely fixes issues with selecting buttons rapidly with a mouse (for example a macro that teleports the mouse and doesnt generate move events... I don't know if that is likely to happen or not).

@floooh
Copy link
Owner

floooh commented Dec 15, 2022

Many thanks! I wasn't aware that the calling order matters so much with the new evented input API. The PR looks simple enough, I'll just merge it 'blindly', and then update the samples webpage.

@floooh floooh merged commit 2c8d849 into floooh:master Dec 15, 2022
@floooh
Copy link
Owner

floooh commented Dec 15, 2022

Ok, the samples webpage has been updated, and the UI works great on my Android phone!

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

Successfully merging this pull request may close these issues.

2 participants