Avoid scrolling and zooming at the same time on Skia/OSX back-end

This commit is contained in:
David Capello 2016-04-08 18:20:18 -03:00
parent 1b28c8e482
commit 951bc1b4b0

View File

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