-
Notifications
You must be signed in to change notification settings - Fork 189
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
[BUG] Dynamic joysticks freezes on fast interaction #151
Comments
I found that problem is exactly same as in #94, but for pointer events. Affected devices sometimes does not send As workaround I switched to "touch" mode for default:
This helps. I think it could be good if this order can be configurable. Why pointer is preferred over touch? |
…vent when multitouch is disabled
…vent when multitouch is disabled
I found that pointer events works much better then touch events. I added partial workaround for single touch mode it works fine in my case. Please look PR. |
No activity here?? |
The PR that was fixing the issue has been closed due to not being robust enough unfortunately. If you're willing to take over, feel free to do so. |
I was able to reproduce on Chrome. |
@yoannmoinet I tried to fix it many times, I think there is no way. The problem is that android literally do not send some events, idk why, maybe due performance problems. I did some workarounds to reset the state in certain cases, but they are very ugly, not worst to show them) |
I'll give it a try, see if I can think of something new. As a last resort, I can just discard the touch after a static timeout, like in, if it didn't move in the last second, just trigger |
Can you show the workarounds you did @caiiiycuk, maybe it'll trigger some ideas as well. |
This is what I ended with |
Hi.
Describe the bug
Dynamic joysticks freeze at some time if you interact fastly. This bug reproduced on nipple js website.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Joysticks should not freeze
Screenshots, Codepen or JSFiddle
Video: https://youtu.be/Rq1NxbSgD0I
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: