Browse Source

Don't flip scroll coordinates of ScrollWidget when shift is held on Mac

tags/v1.1.1
Andrew Belt 5 years ago
parent
commit
42902871fb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/ui/ScrollWidget.cpp

+ 3
- 0
src/ui/ScrollWidget.cpp View File

@@ -102,8 +102,11 @@ void ScrollWidget::onHoverScroll(const event::HoverScroll &e) {

math::Vec scrollDelta = e.scrollDelta;
// Flip coordinates if shift is held
// Mac (or GLFW?) already does this for us.
#if !defined ARCH_MAC
if ((APP->window->getMods() & RACK_MOD_MASK) == GLFW_MOD_SHIFT)
scrollDelta = scrollDelta.flip();
#endif

offset = offset.minus(scrollDelta);
e.consume(this);


Loading…
Cancel
Save