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); } /**