mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-21 19:31:52 -04:00
Merge 3b4b7764ee
into d31ef12363
This commit is contained in:
commit
8d889d44a9
1 changed files with 12 additions and 0 deletions
|
@ -4467,6 +4467,17 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
|||
}
|
||||
var dragDistanceColumns:Int = dragTargetCurrentColumn;
|
||||
|
||||
if (dragDistanceMs == 0 && dragDistanceColumns == 0)
|
||||
{
|
||||
// There's no need to move anything.
|
||||
// Also prevents the selection boxes on notes from disappearing when they're 'moved' like this.
|
||||
dragTargetNote = null;
|
||||
dragTargetEvent = null;
|
||||
dragTargetCurrentStep = 0;
|
||||
dragTargetCurrentColumn = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentNoteSelection.length > 0 && currentEventSelection.length > 0)
|
||||
{
|
||||
// Both notes and events are selected.
|
||||
|
@ -4532,6 +4543,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
|||
else if (dragTargetEvent != null)
|
||||
{
|
||||
data = ChartEditorState.STRUMLINE_SIZE * 2 + 1;
|
||||
noteGridPos = noteDataToGridColumn(data) - 1;
|
||||
}
|
||||
var dragDistanceColumns:Int = cursorGridPos - noteGridPos;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue