summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_cocoa.c
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-07-26 21:08:14 +0200
committerAkemi <der.richter@gmx.de>2017-07-31 20:22:33 +0200
commitb726f1eb9060bf9abbd83a06298c557e25557612 (patch)
treeb04b6b8925e325652779fcb44ae82aee6a8f5541 /video/out/opengl/context_cocoa.c
parent53188a14bf89e70b77139783230789330d8f571f (diff)
downloadmpv-b726f1eb9060bf9abbd83a06298c557e25557612.tar.bz2
mpv-b726f1eb9060bf9abbd83a06298c557e25557612.tar.xz
cocoa: distinguish between horizontal and vertical scroll
we need to switch the x and y deltas when Shift is being held because macOS switches them around. otherwise we would get a horizontal scroll on a vertical one and vice versa. additional we switch from deltaX/Y to scrollingDeltaX/Y since the Apple docs suggest it's the preferred way now. in my tests both reported the same values on imprecise scrolls though.
Diffstat (limited to 'video/out/opengl/context_cocoa.c')
0 files changed, 0 insertions, 0 deletions