Skip to content

Aligned resizeNeighbor key inputs with base class NoteEditState.#2196

Open
rokujyushi wants to merge 1 commit into
openutau:masterfrom
rokujyushi:Fix-NoteResizeEditState-key-input
Open

Aligned resizeNeighbor key inputs with base class NoteEditState.#2196
rokujyushi wants to merge 1 commit into
openutau:masterfrom
rokujyushi:Fix-NoteResizeEditState-key-input

Conversation

@rokujyushi

Copy link
Copy Markdown
Contributor

In the NotesCanvasLeftPointerPressed method, the resizeNeighbor argument was removed from the NoteResizeEditState initialization. This led to the removal of the condition args.KeyModifiers == KeyModifiers.Alt.

In the NoteResizeEditState class, the readonly modifier for the resizeNeighbor field was removed, allowing the value to be changed dynamically. The initialization logic for resizeNeighbor was moved from the constructor to the Update method, and it is now set based on the altHeld state. This aligns the specification with the modifier key input handling in NoteEditState.

In the `NotesCanvasLeftPointerPressed` method, the `resizeNeighbor` argument was removed from the `NoteResizeEditState` initialization. This led to the removal of the condition `args.KeyModifiers == KeyModifiers.Alt`.

In the `NoteResizeEditState` class, the `readonly` modifier for the `resizeNeighbor` field was removed, allowing the value to be changed dynamically. The initialization logic for `resizeNeighbor` was moved from the constructor to the `Update` method, and it is now set based on the `altHeld` state.
This aligns the specification with the modifier key input handling in `NoteEditState`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants