From 951bc1b4b0b06ff06253afedbde05fca8fdf2cbf Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 8 Apr 2016 18:20:18 -0300 Subject: [PATCH] Avoid scrolling and zooming at the same time on Skia/OSX back-end --- src/app/ui/editor/state_with_wheel_behavior.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/ui/editor/state_with_wheel_behavior.cpp b/src/app/ui/editor/state_with_wheel_behavior.cpp index 42b8c3e00..d30aae4c3 100644 --- a/src/app/ui/editor/state_with_wheel_behavior.cpp +++ b/src/app/ui/editor/state_with_wheel_behavior.cpp @@ -51,7 +51,8 @@ bool StateWithWheelBehavior::onMouseWheel(Editor* editor, MouseMessage* msg) else if (Preferences::instance().editor.zoomWithWheel()) { if (msg->ctrlPressed()) wheelAction = WHEEL_FRAME; - else if (msg->wheelDelta().x != 0 || msg->shiftPressed()) + else if ((msg->wheelDelta().x != 0 && !msg->preciseWheel()) || + (msg->shiftPressed())) wheelAction = WHEEL_HSCROLL; else wheelAction = WHEEL_ZOOM;