Skip to content

Commit 287720a

Browse files
grma1arschmitz
authored andcommitted
Rotation: Do not depend on non standard touch list ordering
Fixes #610 Fixes #791 Closes #696
1 parent 711d8a1 commit 287720a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function getAngle(p1, p2, props) {
379379
* @return {Number} rotation
380380
*/
381381
function getRotation(start, end) {
382-
return getAngle(end[1], end[0], PROPS_CLIENT_XY) - getAngle(start[1], start[0], PROPS_CLIENT_XY);
382+
return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
383383
}
384384

385385
/**

0 commit comments

Comments
 (0)