Skip to content

Commit

Permalink
Rotation: Do not depend on non standard touch list ordering
Browse files Browse the repository at this point in the history
Fixes #610
Fixes #791
Closes #696
  • Loading branch information
grma1 authored and arschmitz committed Aug 8, 2015
1 parent 711d8a1 commit 287720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 287720a

Please sign in to comment.