Skip to content

Commit

Permalink
Few late stage UI tweaks (surge-synthesizer#5604)
Browse files Browse the repository at this point in the history
1. Command-while-moving resets in LFO. Closes surge-synthesizer#5603
2. Supress extra label for unscrolled modlist. Closes surge-synthesizer#5602
  • Loading branch information
baconpaul authored Dec 9, 2021
1 parent 04e38b3 commit 62d8c64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/surge-xt/gui/overlays/ModulationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ struct ModulationListContents : public juce::Component, public Surge::GUI::SkinC

for (auto &r : rows)
{
r->isAfterTop = prior;
r->isAfterTop = prior && yPos < -4; // that's about scroll for first. #5602
prior = r->isTop;
}

Expand Down
9 changes: 8 additions & 1 deletion src/surge-xt/gui/widgets/LFOAndStepDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,14 @@ void LFOAndStepDisplay::mouseDrag(const juce::MouseEvent &event)
}
case VALUES:
{
setStepValue(event);
if (event.mods.isCommandDown())
{
setStepToDefault(event);
}
else
{
setStepValue(event);
}
break;
}
}
Expand Down

0 comments on commit 62d8c64

Please sign in to comment.