From f504204ef1397db7f69daaa7a1198510f00a2834 Mon Sep 17 00:00:00 2001 From: regulus79 <117475203+regulus79@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:55:26 -0500 Subject: [PATCH] Fix Pitch Bending, Strum, and Knife Tools Affecting Per-Note Velocity/Panning (#8243) --- src/gui/editors/PianoRoll.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 65df41af0..52d906b58 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -2501,18 +2501,17 @@ void PianoRoll::mouseMoveEvent( QMouseEvent * me ) { updateKnifePos(me, false); } - if (m_editMode == EditMode::Detuning && (m_parameterEditDownLeft || m_parameterEditDownRight)) + else if (m_editMode == EditMode::Detuning && (m_parameterEditDownLeft || m_parameterEditDownRight)) { // Update the current dragging/adding/removal of automation nodes in the detuning curves of the selected notes. updateParameterEditPos(me, Note::ParameterType::Detuning); } - // Update Strum position if we are on knife mode - if (m_editMode == EditMode::Strum && m_strumEnabled) + // Update Strum position if we are in strum mode + else if (m_editMode == EditMode::Strum && m_strumEnabled) { updateStrumPos(me, false, me->modifiers() & Qt::ShiftModifier); } - - if (pos.y() > PR_TOP_MARGIN || m_action != Action::None) + else if (pos.y() > PR_TOP_MARGIN || m_action != Action::None) { bool edit_note = (pos.y() > noteEditTop()) && m_action != Action::SelectNotes;