corrected typo (#4328)

thanks
This commit is contained in:
amadois 2017-09-20 19:27:03 +02:00 committed by Andrea Bogazzi
parent ea93c288e8
commit d7131d1cac

View file

@ -986,7 +986,7 @@
var lastAngle = atan2(t.ey - t.top, t.ex - t.left),
curAngle = atan2(y - t.top, x - t.left),
angle = radiansToDegrees(curAngle - lastAngle + t.theta),
hasRoated = true;
hasRotated = true;
if (t.target.snapAngle > 0) {
var snapAngle = t.target.snapAngle,
@ -1009,13 +1009,13 @@
angle %= 360;
if (t.target.angle === angle) {
hasRoated = false;
hasRotated = false;
}
else {
t.target.angle = angle;
}
return hasRoated;
return hasRotated;
},
/**