Update Transformer.js

This commit is contained in:
tole42 2018-10-05 10:05:46 +02:00 committed by GitHub
parent bb72eccbe7
commit 9a20580fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -531,7 +531,7 @@
currentSnap = i;
}
}
if (snaps.length > 0 && currentSnap >=0) {
if (snaps.length > 0 && currentSnap >= 0) {
angle = Konva.getAngle(snaps[currentSnap]);
newRotation = Konva.Util._radToDeg(angle);
newAlpha = Konva.Util._degToRad(newRotation);