diff --git a/OpenUtau/Controls/PianoRoll.axaml.cs b/OpenUtau/Controls/PianoRoll.axaml.cs index 2a87c6a2f..5f6d5296b 100644 --- a/OpenUtau/Controls/PianoRoll.axaml.cs +++ b/OpenUtau/Controls/PianoRoll.axaml.cs @@ -744,7 +744,6 @@ private void NotesCanvasLeftPointerPressed(Control control, PointerPoint point, if (noteHitInfo.hitResizeArea) { editState = new NoteResizeEditState( control, ViewModel, this, noteHitInfo.note, - args.KeyModifiers == KeyModifiers.Alt, fromStart: noteHitInfo.hitResizeAreaFromStart); Cursor = ViewConstants.cursorSizeWE; } else if (args.KeyModifiers == cmdKey) { diff --git a/OpenUtau/Views/NoteEditStates.cs b/OpenUtau/Views/NoteEditStates.cs index 2b0c6c20a..fd57de039 100644 --- a/OpenUtau/Views/NoteEditStates.cs +++ b/OpenUtau/Views/NoteEditStates.cs @@ -305,9 +305,9 @@ public override void End(IPointer pointer, Point point) { class NoteResizeEditState : NoteEditState { public readonly UNote note; public readonly UNote? neighborNote; - public readonly bool resizeNeighbor; public readonly int neighborNoteLength; public readonly bool fromStart; + public bool resizeNeighbor; protected override string? commandNameKey => "command.note.edit"; public NoteResizeEditState( @@ -315,7 +315,6 @@ public NoteResizeEditState( PianoRollViewModel vm, IValueTip valueTip, UNote note, - bool resizeNeighbor, bool fromStart = false) : base(control, vm, valueTip) { this.note = note; var notesVm = vm.NotesViewModel; @@ -324,13 +323,13 @@ public NoteResizeEditState( } neighborNote = fromStart ? note.Prev : note.Next; neighborNoteLength = neighborNote?.duration ?? 0; - this.resizeNeighbor = resizeNeighbor; this.fromStart = fromStart; } public override void Update(IPointer pointer, Point point) { var project = DocManager.Inst.Project; var notesVm = vm.NotesViewModel; var part = notesVm.Part; + this.resizeNeighbor = altHeld; if (part == null) { return; }