Browse Source

Fixed snapping shift crash

flabbet 8 months ago
parent
commit
a9f5d277f4

+ 1 - 1
src/PixiEditor/Models/Controllers/InputDevice/SnappingController.cs

@@ -277,7 +277,7 @@ public class SnappingController
             return pos;
         }
 
-        if (direction == VecD.Zero)
+        if (direction.X == 0 || direction.Y == 0)
         {
             return GetSnapPoint(pos, out xAxis, out yAxis);
         }