Fix Pitch Bending, Strum, and Knife Tools Affecting Per-Note Velocity/Panning (#8243)

This commit is contained in:
regulus79
2026-02-01 12:55:26 -05:00
committed by GitHub
parent eb46e6f8de
commit f504204ef1

View File

@@ -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;