Skip to content

Commit

Permalink
Fix behavior when dragging unselected notes
Browse files Browse the repository at this point in the history
  • Loading branch information
regulus79 committed Feb 22, 2025
1 parent 04c0992 commit e2f28fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,8 @@ void PianoRoll::mousePressEvent(QMouseEvent * me )

if (m_editMode == EditMode::Strum && me->button() == Qt::LeftButton)
{
if (noteUnderMouse())
const auto& selectedNotes = getSelectedNotes();
if (std::find(selectedNotes.begin(), selectedNotes.end(), noteUnderMouse()) != selectedNotes.end())
{
updateStrumPos(me, true, me->modifiers() & Qt::ShiftModifier);
m_strumEnabled = true;
Expand Down

0 comments on commit e2f28fc

Please sign in to comment.