Skip to content

Commit a859418

Browse files
committed
1 parent 52a090e commit a859418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function getAngle(p1, p2, props) {
371371
* @return {Number} rotation
372372
*/
373373
function getRotation(start, end) {
374-
return getAngle(end[1], end[0], PROPS_CLIENT_XY) - getAngle(start[1], start[0], PROPS_CLIENT_XY);
374+
return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
375375
}
376376

377377
/**

0 commit comments

Comments
 (0)