Permalink
Browse files

Rotation: Do not depend on non standard touch list ordering

Fixes #610
Fixes #791
Closes #696
  • Loading branch information...
grma1 authored and arschmitz committed Oct 27, 2014
1 parent 711d8a1 commit 287720a6e5067e7f28be8b8b3b266d22905361c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/input.js
View
@@ -379,7 +379,7 @@ function getAngle(p1, p2, props) {
* @return {Number} rotation
*/
function getRotation(start, end) {
return getAngle(end[1], end[0], PROPS_CLIENT_XY) - getAngle(start[1], start[0], PROPS_CLIENT_XY);
return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
}
/**

0 comments on commit 287720a

Please sign in to comment.