diff options
author | Mad Fish <MadFishTheOne@gmail.com> | 2013-10-12 15:24:26 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-10-12 16:26:24 +0200 |
commit | 42189ada97192e25539bd1bed311a370f25744fe (patch) | |
tree | 7546f2684fe6012dca59eb6b10b556fc702d1387 /video | |
parent | 65a39772829b67c3dfb77aa35d51a3c35e49c050 (diff) | |
download | mpv-42189ada97192e25539bd1bed311a370f25744fe.tar.bz2 mpv-42189ada97192e25539bd1bed311a370f25744fe.tar.xz |
cocoa: fix mouse wheel scrolling
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa/view.m | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } } |