From d7c2c25ee702e0b42d3f6984311e63b0a22fb165 Mon Sep 17 00:00:00 2001 From: Ana Date: Mon, 24 Jul 2017 11:01:41 -0700 Subject: [PATCH] Fix bug with rotation when add a value for threshold to avoid map being rotated and zoomed at the same time --- hammer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hammer.js b/hammer.js index 9cd1ba7a5..f0f1371e8 100644 --- a/hammer.js +++ b/hammer.js @@ -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); } /**