mirror of https://github.com/mpv-player/mpv
cocoa: fix mouse wheel scrolling
This commit is contained in:
parent
65a3977282
commit
42189ada97
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue