macOS: Fix Shift+mouse wheel to scroll horizontally on Timeline

Topic: https://community.aseprite.org/t/timeline-scrolling-scroll-wheel-bug/624
This commit is contained in:
David Capello 2017-10-30 12:48:06 -03:00
parent 0b538d8779
commit 1a76457f41

View File

@ -1208,8 +1208,8 @@ bool Timeline::onProcessMessage(Message* msg)
delta.x *= frameBoxWidth();
delta.y *= layerBoxHeight();
if (msg->shiftPressed()) {
// On macOS shift already changes the wheel axis
if (delta.x == 0 && // On macOS shift already changes the wheel axis
msg->shiftPressed()) {
if (std::fabs(delta.y) > delta.x)
std::swap(delta.x, delta.y);
}