-
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
Joystick gets stuck on status bar in iOS #93
Comments
Did you get this behavior in one of the example we have? Because I could not reproduce the issue on iOS Simulator, which is the only way I have to test iOS devices. Please reopen with some testable code. |
Thanks @Steckdoserich I'm looking into it, see if I can reproduce it on my end. The thing is, in your gif, the example is embedded in an iframe, which is far from any real-life usage. |
Also, what kind of iPad, iOS do you use? |
Thanks @yoannmoinet for having a look into it! My first experience with this bug was in my App. I'm currently using your plugin to bring a joystick into my Cordova App. My first step was to check if the problem was on my side. So I just build a Cordova App with your third test (index3.html) in it. As you can see in the gif below, this bug can occur on mobile devices as well. |
Is there any update or do you need any further information? |
@yoannmoinet I just found out that a touchend event doesn't get called in iOS when you leave the screen over the statusbar. Therefore the pageY value of the touchmove event is going negative. I found the solution over here: https://stackoverflow.com/a/37434902/1754625 |
On all of my Apple products (iPhone SE, iPhone 7, Mac mini) the joystick gets stuck. What you simply have to do is to drag the joystick to the top menu/status bar and then release the finger/left click. After that the joystick gets stuck in the last position. To release it you have to start a new touch/click event.
Did anyone else experienced this problem? Is there a workaround?
The text was updated successfully, but these errors were encountered: