Skip to content

Commit

Permalink
Only use shift for swipe moves (surge-synthesizer#599)
Browse files Browse the repository at this point in the history
Surge had an odd feature that shift, control, alt - really any
modifier - meant that as you swiped over a control it changed.
@sense-amr had the excellent suggestion that we limit this to
shift to avoid accidental changes and this PR does that.

Closes surge-synthesizer#337 Holding down alt etc quick changes
  • Loading branch information
baconpaul authored Feb 15, 2019
1 parent 297385f commit 1214978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/gui/CHSwitch2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ CMouseEventResult CHSwitch2::onMouseUp(CPoint& where, const CButtonState& button
}
CMouseEventResult CHSwitch2::onMouseMoved(CPoint& where, const CButtonState& buttons)
{
if (dragable && buttons != 0)
if (dragable && ( buttons.getButtonState() || ( buttons.getModifierState() & kShift ) ) )
{
auto mouseableArea = getMouseableArea();
double coefX, coefY;
Expand Down

0 comments on commit 1214978

Please sign in to comment.