mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 01:20:17 +00:00
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:
parent
0b538d8779
commit
1a76457f41
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user