From 42902871fbef643b4178411b8db2025e1175863e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 27 Jun 2019 12:12:48 -0400 Subject: [PATCH] Don't flip scroll coordinates of ScrollWidget when shift is held on Mac --- src/ui/ScrollWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/ScrollWidget.cpp b/src/ui/ScrollWidget.cpp index 1aeb4c80..ebf41d0e 100644 --- a/src/ui/ScrollWidget.cpp +++ b/src/ui/ScrollWidget.cpp @@ -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);