-
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
nipplejs get stuck in iphone when switch app #61
Comments
i also made an easy test to reproduce the error. If a alert("bla bla") box appear when i am moving the joystick it will get stuck too! (always in iphone i am testing). thks!! |
I'll have a look as soon as I have time. PR are more than welcome. |
i just found the solution:
touchcancel event it fix the problem
El lunes, 27 de noviembre de 2017 14:34:35 ART, Yoann Moinet <[email protected]> escribió:
I'll have a look as soon as I have time.
PR are more than welcome.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
touchcancel event it fix the problem!, $(document).on('touchcancel', function(event) { |
I'll be damned... did you test it in every issues you've answered? |
Hi! It was a pleassure! your pluging rocks!
At léast in my case in plugin static mode all the issues that i answered become fixed with touchcancel event. And for the user experience is imperceptible when you destroy and create new instance (in static of course)
Enviado desde mi iPhone
El 28 nov. 2017, a la(s) 06:09, Yoann Moinet <[email protected]> escribió:
… I'll be damned... did you test it in every issues you've answered?
Thanks a lot for finding this out anyway.
I'll think of a solution to add this in the library.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
HERE for iphone 7 and > (iphone x compatible), is my game using the plugin!, in the new release the error is fixed. https://itunes.apple.com/us/app/partners/id1294121944?l=es&ls=1&mt=8 |
@adriancabouli this works better for me:
|
hi, i am having troubles with the plugin. I made a game, and use the nipplejs like a joystick. When, (by mistake) the user switch the app to another, or try to, and in that moment is moving the joystick, when returns back to the app, the joystick became stuck in the last position that it was. And then is no way back, it always keep like that. I made a code that if i leave completly the app, (it calls in jquery VisibilityHidden) i remove nipplejs and create new instance. But the problem appear if i switch to another app and return back instantly to my game, or also when the apps are showing in "select app to switch" in iphone, and i am keeping moving the joystick. It happens a lot with iphone x cause the status bar in landscape mode is always visible and close to the joystick, so is probbably that the bug problem happen more than once. Thanks!
The text was updated successfully, but these errors were encountered: