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

ev.rotation sometimes jumps 180 degrees #610

Closed
pteromys opened this issue Jul 19, 2014 · 4 comments
Closed

ev.rotation sometimes jumps 180 degrees #610

pteromys opened this issue Jul 19, 2014 · 4 comments
Labels

Comments

@pteromys
Copy link

Test case using 2.0.1. To reproduce on Nexus 7:

  1. Put down one finger
  2. Put down a second finger
  3. While moving finger 2, lift finger 1.

On the console-logged events, I see the length of ev.changedPointers drop to 1 a couple of events before ev.pointers does. When this happens, the two pointers seem to swap places, i.e. ev.pointers[x].identifer != x (the value of .identifier seems to remain correct, but not the position in ev.pointers).

Would it be enough to add a sorting step to uniqueArray? It only seems to be used in one place anyway.

@jtangelder
Copy link
Member

I've just added the sorting to the uniqueArray function. Could you check if it works for you? You need to clone the repo and run npm install && grunt build to get the builded (concatted) version.

@mkv123
Copy link

mkv123 commented Jul 30, 2014

Doesn't fix it. See comments I made in #596 .

@amatochristopher
Copy link

I am having this same issue with versions 2.02. Is there a previous version that was not having this issue?

@bumbu
Copy link
Contributor

bumbu commented Sep 16, 2014

I had a somehow similar problem in PhantomJS but it was because of targetTouches.
I fixed it by preserving the original order of events that come from browser.

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

No branches or pull requests

5 participants