diff options
author | Andrew Belt <andrewpbelt@gmail.com> | 2021-09-02 08:05:28 -0400 |
---|---|---|
committer | Andrew Belt <andrewpbelt@gmail.com> | 2021-09-02 08:05:28 -0400 |
commit | 2344abbc11edf1ed28cae4cb65f4d5192bac8cd8 (patch) | |
tree | 91c517440f9addf7b9e640c6b8b20468e5356462 /src/app/RackScrollWidget.cpp | |
parent | f1635cd96bce6cb214f26a7382abbe49a32e6ab9 (diff) |
If knobScroll is enabled, don't move knobs while scrolling the rack.
Diffstat (limited to 'src/app/RackScrollWidget.cpp')
-rw-r--r-- | src/app/RackScrollWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/RackScrollWidget.cpp b/src/app/RackScrollWidget.cpp index c80dfee1..f25ed5ea 100644 --- a/src/app/RackScrollWidget.cpp +++ b/src/app/RackScrollWidget.cpp @@ -114,10 +114,6 @@ void RackScrollWidget::onHoverKey(const HoverKeyEvent& e) { void RackScrollWidget::onHoverScroll(const HoverScrollEvent& e) { - ScrollWidget::onHoverScroll(e); - if (e.isConsumed()) - return; - if ((APP->window->getMods() & RACK_MOD_MASK) == RACK_MOD_CTRL) { // Increase zoom float zoomDelta = e.scrollDelta.y / 50 / 4; @@ -132,6 +128,10 @@ void RackScrollWidget::onHoverScroll(const HoverScrollEvent& e) { internal->zoomPos = e.pos; e.consume(this); } + + if (e.isConsumed()) + return; + ScrollWidget::onHoverScroll(e); } |