-
Notifications
You must be signed in to change notification settings - Fork 186
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
Joystick gets stuck #31
Comments
Thanks for reporting it, I'll look into this. |
I will message you privately. |
Ok, so after testing it, I might have found a way to reproduce it. I was able to reproduce the phenomenon by activating the right joystick, while playing with it, rotate the phone. Is it the behavior you were having? It could be related to #30. This looks like an edge case, but definitely a bug. |
It is not the same behavior, but I have seen that happen as well. Perhaps I will try to come up with a better repro.. On Mon, May 30, 2016 at 2:35 PM, Yoann Moinet [email protected]
|
Having same issue. Reproduced by creating one static and one dynamic nipples on different dom elements. When bug happens having |
Thx @mlknz to add more details to this. |
@yoannmoinet couldn't reproduce bug with dataOnly param set to true. Could it be dom manipulation related issue? |
@mlknz it could be indeed. I don't have much time on this right now, so feel free to investigate. |
Found easy way to reproduce bug: Basically slow double tap works. |
hi, I have fixed a similar issue (joystick gets stuck in iOS devices) by adding this line "|| self.binded" in this function in this file dist/nipplejs.js
|
I am seeing this happen with I think this only happens when There are no error warnings thrown. The behaveior that happens is the joy stick UI DOM elements just freeze or lockup, The joystic UI remains visible on screen and cannot be manipulated. |
I'm seeing this as well and can replicate only on iOS devices, Android seems to work fine. I've added a console log to Super.trigger and I'm seeing the following output (you're going to want to paste this into an editor to make any sense of it 😅):
It looks as though the |
great find @robertlong |
I've done some more research today. It looks like the second |
I ended up getting stuck on this. It probably has something to do with |
I'm using Nipple.js on two separate transparent elements, overlaid on top of an HTML canvas - a 'left' and 'right' element. This allows me to use two joysticks for a 'twin stick shooter' style game.
I'm having a lot of trouble determining when this actually happens, but it is happening quite frequently: the right joystick "locks up", frozen at the max extent of its bounds, and cannot be released without a page refresh. The left joystick never seems to lock up (it is defined first in my code).
Part of the difficulty in debugging this is that it only happens when using a phone to visit the website, and as such my debugging tools (namely access to the browser console) are practically non-existent. In the browser, I cannot reproduce the bug.
It also seems to happen only when there are 2 joysticks active at once. If only 1 joystick is used (despite both having been instantiated), the problem doesn't seem to surface.
Any ideas? I'm digging through your code to see if I can spot where this bug might come from, but figured I would bring it up in case you are able to spot the issue more easily.
Might not be relevant, but here's my usage:
The text was updated successfully, but these errors were encountered: