Skip to content

Commit

Permalink
Temporary workaround for accidental move on select
Browse files Browse the repository at this point in the history
In  bd2b2e4 we made select start a drag event but this meant
tiny mosue movements when selecting would send a drag event simultaneously
with the select event on the wrong zone, making zones overlap.

The correct fix for this is to wait for the new selected zone or update
the view internally when selecting, so this is not a good solution
long term, buit this fixes the bug in the interim.

Addresses surge-synthesizer#1270
  • Loading branch information
baconpaul committed Sep 6, 2024
1 parent 9f93cf3 commit e6a4532
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ void ZoneLayoutDisplay::mouseDrag(const juce::MouseEvent &e)
{
if (mouseState == DRAG_SELECTED_ZONE)
{
if (e.getDistanceFromDragStart() < 3)
{
return;
}
auto lb = getLocalBounds().toFloat();
auto displayRegion = lb;

Expand Down

0 comments on commit e6a4532

Please sign in to comment.