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 get stuck on iphone #33

Closed
luckylooke opened this issue Jul 21, 2016 · 4 comments
Closed

joystick get stuck on iphone #33

luckylooke opened this issue Jul 21, 2016 · 4 comments
Assignees

Comments

@luckylooke
Copy link

There is method prepareCollections() on Manager.prototype, but when it is called it doesnt work. You can test it via safari remote debug in console.

a = [];
a.test = function(){console.log('test')};
a.test(); // returns undefined for first time
a.test(); // returns 'test' every other attempt

I think that is the reason why it get stuck. You can test it on your DEMO (dynamic) as well, just open it on iphone and quickly repeat different touches, best with two fingers. Same for chrome or safari. It seems to me like a bug in safari, but you should fix it anyway, because there is lot of users with iphones.

screenshot

@yoannmoinet
Copy link
Owner

Thanks for reporting this, I'll look into it.

@ELundby45
Copy link

I've noticed that this problem occurs significantly less if I set the fadeTime to 0.

@kevzettler
Copy link

I've also encountered this problem

@adriancabouli
Copy link

touchcancel event it fix the problem!,

$(document).on('touchcancel', function(event) {
REMOVE_AND_CREATE_JOYSTIC() // or whatever...
});

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