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

Mobile web touches events not working correctly #6

Open
Ober3550 opened this issue Sep 20, 2021 · 4 comments
Open

Mobile web touches events not working correctly #6

Ober3550 opened this issue Sep 20, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Ober3550
Copy link

Just wondering if you could do something about fixing the bugs with web touches on mobile. Since mobiles don't use the mouse click event as consistently compared to the touches event interface.

@jnmaloney
Copy link
Owner

Does it still have the bugs now? I've updated to a newer version.

@Ober3550
Copy link
Author

It's much better now but the delay between the event and the gui changing is like 1 second. Perhaps this is because the gui is taking so much of the processing that the javascript events aren't being propagated properly?

Besides that I'm impressed how quickly this was 'mostly' fixed :D. Good Job!

@Ober3550
Copy link
Author

Correction. The previous event is only processed after the current event is added. This means if you click on a menu then click somewhere else the menu you just clicked on is instantly unselected. I believe this is a quirk of how imgui works in general and I believe you should add an extra event after each touch event to push the touch event through the pipeline. Maybe after each touch event you can do another one at the same position

@Ober3550
Copy link
Author

Actually no that sounds like a dumb idea for checkboxes and stuff... I think the solution would be to intercept all touch events and turn them into mouseclick events and do a bit of debouncing and stuff so there's not multiple events for the same position within a short span of time. You could change the update rate so you can drag through different colors on the color picker

@jnmaloney jnmaloney added the bug Something isn't working label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants