diff --git a/src/input.js b/src/input.js index e9601ca68..e22c647de 100644 --- a/src/input.js +++ b/src/input.js @@ -379,7 +379,7 @@ function getAngle(p1, p2, props) { * @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); } /**