From 40046906a642c86df85a338ad13a20267e6920b6 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:29:01 -0700 Subject: [PATCH] pretty big bug i just noticed --- source/funkin/editors/charter/Charter.hx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 49ec899c..e969385f 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -489,6 +489,7 @@ class Charter extends UIState { #if REGION var gridActionType:CharterGridActionType = NONE; var dragStartPos:FlxPoint = new FlxPoint(); + var selectionDragging:Bool = false; public function updateNoteLogic(elapsed:Float) { for (group in [notesGroup, eventsGroup]) { @@ -556,7 +557,8 @@ class Charter extends UIState { if (!FlxG.mouse.pressed) gridActionType = NONE; case DRAG: - if (FlxG.mouse.pressed) { + selectionDragging = FlxG.mouse.pressed; + if (selectionDragging) { gridBackdrops.draggingObj = null; selection.loop(function (n:CharterNote) { n.snappedToStrumline = false; @@ -1031,7 +1033,7 @@ class Charter extends UIState { } function _edit_undo(_) { - if (strumLines.isDragging) return; + if (strumLines.isDragging || selectionDragging) return; selection = []; var undo = undos.undo(); @@ -1072,7 +1074,7 @@ class Charter extends UIState { } function _edit_redo(_) { - if (strumLines.isDragging) return; + if (strumLines.isDragging || selectionDragging) return; selection = []; var redo = undos.redo();