From 42189ada97192e25539bd1bed311a370f25744fe Mon Sep 17 00:00:00 2001 From: Mad Fish Date: Sat, 12 Oct 2013 15:24:26 +0200 Subject: cocoa: fix mouse wheel scrolling --- video/out/cocoa/view.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/cocoa/view.m b/video/out/cocoa/view.m index 2ae81abda9..e2891ffd3d 100644 --- a/video/out/cocoa/view.m +++ b/video/out/cocoa/view.m @@ -190,7 +190,7 @@ [self.adapter putAxis:cmd delta:delta]; } else { const int modifiers = [event modifierFlags]; - const int mpkey = delta > 0 ? MP_MOUSE_BTN3 : MP_MOUSE_BTN4; + const int mpkey = [event deltaY] > 0 ? MP_MOUSE_BTN3 : MP_MOUSE_BTN4; [self.adapter putKey:mpkey withModifiers:modifiers]; } } -- cgit v1.2.3