Skip to content

Commit

Permalink
Fix select drag annoyance (#1203)
Browse files Browse the repository at this point in the history
the recently selected zone wasnt draggable withot a fresh mouse
down. Fix. Closes #1197
  • Loading branch information
baconpaul authored Aug 27, 2024
1 parent a02c04a commit bd2b2e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src-ui/app/edit-screen/components/MappingPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1065,17 +1065,23 @@ void MappingZones::mouseDown(const juce::MouseEvent &e)
{
// alt click promotes it to lead
display->editor->doSelectionAction(nextZone, true, false, true);
lastMousePos = e.position;
mouseState = DRAG_SELECTED_ZONE;
}
else
{
// single click makes it a single lead
display->editor->doSelectionAction(nextZone, true, true, true);
lastMousePos = e.position;
mouseState = DRAG_SELECTED_ZONE;
}
}
else
{
display->editor->doSelectionAction(
nextZone, true, !(e.mods.isCommandDown() || e.mods.isAltDown()), true);
lastMousePos = e.position;
mouseState = DRAG_SELECTED_ZONE;
}
}
else
Expand Down

0 comments on commit bd2b2e4

Please sign in to comment.