This commit is contained in:
Lasercar 2025-04-05 05:28:07 +10:00 committed by GitHub
commit 26707a216e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4787,7 +4787,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
// Show the context menu connected to the note.
if (useSingleNoteContextMenu)
{
this.openNoteContextMenu(FlxG.mouse.viewX, FlxG.mouse.viewY, highlightedNote.noteData);
// Open the hold note menu instead if the highlighted note has a length value
if (highlightedNote.noteData.length > 0) this.openHoldNoteContextMenu(FlxG.mouse.viewX, FlxG.mouse.viewY, highlightedNote.noteData);
else
this.openNoteContextMenu(FlxG.mouse.viewX, FlxG.mouse.viewY, highlightedNote.noteData);
}
else
{