Improve strum tool LMB event (#8195)
This commit is contained in:
@@ -1666,8 +1666,7 @@ void PianoRoll::mousePressEvent(QMouseEvent * me )
|
||||
if (m_editMode == EditMode::Strum && me->button() == Qt::LeftButton)
|
||||
{
|
||||
// Only strum if the user is dragging a selected note
|
||||
const auto& selectedNotes = getSelectedNotes();
|
||||
if (std::find(selectedNotes.begin(), selectedNotes.end(), noteUnderMouse()) != selectedNotes.end())
|
||||
if (Note* note = noteUnderMouse(); note && note->selected())
|
||||
{
|
||||
updateStrumPos(me, true, me->modifiers() & Qt::ShiftModifier);
|
||||
m_strumEnabled = true;
|
||||
|
||||
Reference in New Issue
Block a user