Skip to content

Commit

Permalink
JogUpDownButton shouldn't fire jog on menu gesture
Browse files Browse the repository at this point in the history
mouseUp needs to supress jog if popup menu chosen basically
  • Loading branch information
baconpaul committed Sep 17, 2024
1 parent e321b9b commit 0d7a2b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sst/jucegui/components/JogUpDownButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ void JogUpDownButton::mouseDown(const juce::MouseEvent &e)

void JogUpDownButton::mouseUp(const juce::MouseEvent &e)
{
if (e.mods.isPopupMenu())
return;

auto jog = 0;
if (e.position.x < getHeight())
jog = -1;
Expand Down

0 comments on commit 0d7a2b1

Please sign in to comment.