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

joystick in 'dynamic' mode gets stuck on iOS #94

Closed
otoinsa opened this issue Jan 3, 2019 · 6 comments
Closed

joystick in 'dynamic' mode gets stuck on iOS #94

otoinsa opened this issue Jan 3, 2019 · 6 comments

Comments

@otoinsa
Copy link

otoinsa commented Jan 3, 2019

Steps to replicate:

  1. Create iOS app with WKWebView running nipple js in the webview side of things
  2. Init nipple js in runtime with mode: 'dynamic'
  3. Tap 3 times fairly quickly on the nipple area you've set up and joystick will get stuck

I've noticed that this won't happen in 'semi' mode.
Yes, I have looked at the previous threads and setting fadeTime to 0 does not help.
Also no errors in js console...

using:
iOS 12
nipplejs 0.8.0

nipplebug

On Android WebView works perfectly for my case,
really like this library :)

Could it be that the new joystick/s get created while the old one is still around?

Not exactly sure how is Safari different in terms of touch events in js.

@rkdrnf
Copy link

rkdrnf commented Jan 15, 2019

Not exactly this but similar thing also happens in the example page.
if you click quickly with dynamic mode, joystick image does not disappear anymore.
I checked that "start" event is called but no "end" event called when this happens.
tested with iPhone X

@yoannmoinet
Copy link
Owner

Thank you for reporting this, I'll have a look.

@iodev
Copy link
Contributor

iodev commented Mar 10, 2019

fixed in commit cf126f2

iodev added a commit to iodev/nipplejs that referenced this issue Mar 12, 2019
@janoelker
Copy link

janoelker commented Apr 8, 2019

Do you also know something to fix my problem #93? It still exists.

@otoinsa
Copy link
Author

otoinsa commented Jul 27, 2019

The issue still persists for me, all of my iOS testers report the same thing, so I’ll be moving away from nipple.js, atleast for iOS.

I understand the creator of nipple.js does not have a iOS test device, the issue is hard to replicate on Simulator, but in a fast paced game on a real device it takes under a minute to crash on iOS 12.

I’m not sure where to start looking, probably somewhere around the place where the finger gets lifted, but for now I’ll just stick with another library on iOS

@janoelker
Copy link

Which library are you going to use instead?

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

No branches or pull requests

5 participants