diff --git a/src/ui/ScrollWidget.cpp b/src/ui/ScrollWidget.cpp index 26709bae..407cf41f 100644 --- a/src/ui/ScrollWidget.cpp +++ b/src/ui/ScrollWidget.cpp @@ -93,7 +93,7 @@ void ScrollWidget::onButton(const ButtonEvent& e) { // Check if scrollable if (offsetBound.size.x > 0.f || offsetBound.size.y > 0.f) { // Handle Alt-click before children, since most widgets consume Alt-click without needing to. - if (e.button == GLFW_MOUSE_BUTTON_LEFT && e.mods == GLFW_MOD_ALT) { + if (e.button == GLFW_MOUSE_BUTTON_LEFT && (e.mods & RACK_MOD_MASK) == GLFW_MOD_ALT) { e.consume(this); return; }