Skip to content

Commit d7c2c25

Browse files
author
Ana
committed
Fix bug with rotation when add a value for threshold to avoid map being rotated and zoomed at the same time
1 parent 37206a3 commit d7c2c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hammer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ function getScale(start, end) {
17831783
* @return {Number} rotation
17841784
*/
17851785
function getRotation(start, end) {
1786-
return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
1786+
return getAngle(end[1], end[0], PROPS_CLIENT_XY) - getAngle(start[1], start[0], PROPS_CLIENT_XY);
17871787
}
17881788

17891789
/**

0 commit comments

Comments
 (0)