rounded note dragging

This commit is contained in:
lunarcleint
2024-02-04 02:43:27 -07:00
parent cc921c946e
commit d71d2b0905
+1 -1
View File
@@ -643,7 +643,7 @@ class Charter extends UIState {
for (s in selection) {
if (s.draggable) {
var changePoint:FlxPoint = FlxPoint.get(verticalChange, horizontalChange);
if (!FlxG.keys.pressed.SHIFT) changePoint.x -= ((s.step + verticalChange) - quantStep(s.step+verticalChange));
if (!FlxG.keys.pressed.SHIFT) changePoint.x -= ((s.step + verticalChange) - quantStepRounded(s.step+verticalChange));
var boundedChange:FlxPoint = changePoint.clone();