Browse Source

Add mod mask when checking for Alt-click dragging in ScrollWidget.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
767c075b75
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/ui/ScrollWidget.cpp

+ 1
- 1
src/ui/ScrollWidget.cpp View File

@@ -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;
}


Loading…
Cancel
Save