aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-10-21 12:26:31 -0400
committerDavid Robillard <d@drobilla.net>2023-10-21 12:34:14 -0400
commit4d9059e23bb6f2edfcb938c050fe8eb78bec2b62 (patch)
tree4a4d4a882af50b6a7abe8469c9c000e7ba954dcc /src
parent0fed0b5f864cf70e2ed3a82236fd81554f52948e (diff)
downloadpugl-4d9059e23bb6f2edfcb938c050fe8eb78bec2b62.tar.gz
pugl-4d9059e23bb6f2edfcb938c050fe8eb78bec2b62.tar.bz2
pugl-4d9059e23bb6f2edfcb938c050fe8eb78bec2b62.zip
MacOS: Fix horizontal scroll direction
Diffstat (limited to 'src')
-rw-r--r--src/mac.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mac.m b/src/mac.m
index ad1ef2b..dcc2ee3 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -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)