mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 10:01:08 +00:00
parent
ea93c288e8
commit
d7131d1cac
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue