Skip to content

Commit

Permalink
Fix bug with rotation when add a value for threshold to avoid map bei…
Browse files Browse the repository at this point in the history
…ng rotated and zoomed at the same time
  • Loading branch information
Ana committed Jul 24, 2017
1 parent 37206a3 commit d7c2c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hammer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ function getScale(start, end) {
* @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 d7c2c25

Please sign in to comment.