fix dragging

This commit is contained in:
lunarcleint
2023-09-02 22:13:03 -07:00
parent 9a0310c721
commit f19896505d
+1 -1
View File
@@ -555,7 +555,7 @@ class Charter extends UIState {
if (FlxG.mouse.pressed) {
selection.loop(function (n:CharterNote) {
n.snappedToStrumline = false;
n.setPosition(n.id * 40 + (mousePos.x - dragStartPos.x), n.step * 40 + (mousePos.y - dragStartPos.y));
n.setPosition(n.fullID * 40 + (mousePos.x - dragStartPos.x), n.step * 40 + (mousePos.y - dragStartPos.y));
n.cursor = HAND;
}, function (e:CharterEvent) {
e.y = e.step * 40 + (mousePos.y - dragStartPos.y) - 17;