From 4d9059e23bb6f2edfcb938c050fe8eb78bec2b62 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 21 Oct 2023 12:26:31 -0400 Subject: MacOS: Fix horizontal scroll direction --- src/mac.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.1