diff options
author | David Robillard <d@drobilla.net> | 2023-10-21 12:26:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-10-21 12:34:14 -0400 |
commit | 4d9059e23bb6f2edfcb938c050fe8eb78bec2b62 (patch) | |
tree | 4a4d4a882af50b6a7abe8469c9c000e7ba954dcc | |
parent | 0fed0b5f864cf70e2ed3a82236fd81554f52948e (diff) | |
download | pugl-4d9059e23bb6f2edfcb938c050fe8eb78bec2b62.tar.gz pugl-4d9059e23bb6f2edfcb938c050fe8eb78bec2b62.tar.bz2 pugl-4d9059e23bb6f2edfcb938c050fe8eb78bec2b62.zip |
MacOS: Fix horizontal scroll direction
-rw-r--r-- | src/mac.m | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -627,7 +627,7 @@ handleCrossing(PuglWrapperView* view, NSEvent* event, const PuglEventType type) { const NSPoint wloc = [self eventLocation:event]; const NSPoint rloc = [NSEvent mouseLocation]; - const double dx = [event scrollingDeltaX]; + const double dx = -[event scrollingDeltaX]; const double dy = [event scrollingDeltaY]; const PuglScrollDirection dir = ((dx == 0.0 && dy > 0.0) |