mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +00:00
Avoid scrolling and zooming at the same time on Skia/OSX back-end
This commit is contained in:
parent
1b28c8e482
commit
951bc1b4b0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user