summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohn Arbuckle2018-07-09 17:02:35 +0200
committerPeter Maydell2018-07-12 17:03:50 +0200
commitdc3c89d612252fc461a65f54885a1fe108e9ec05 (patch)
treeef60085114bd7522944cbde500e466c52d44860a /scripts
parentMerge remote-tracking branch 'remotes/otubo/tags/pull-seccomp-20180712' into ... (diff)
downloadqemu-dc3c89d612252fc461a65f54885a1fe108e9ec05.tar.gz
qemu-dc3c89d612252fc461a65f54885a1fe108e9ec05.tar.xz
qemu-dc3c89d612252fc461a65f54885a1fe108e9ec05.zip
ui/cocoa.m: replace scrollingDeltaY with deltaY
The NSEvent class method scrollingDeltaY is available for Mac OS 10.7 and newer. Since QEMU supports Mac OS 10.5 and up, we need to be using a method that is available on these version of Mac OS X. The deltaY method is a method that does almost the same thing as scrollingDeltaY and is available on Mac OS 10.5 and up. So we can replace scrollingDeltaY with deltaY. We only check deltaY's value if it is not zero because zero means that the scrolling increment was sufficiently fine that it was only reported in scrollingDeltaY, or that the scrolling was horizontal. Signed-off-by: John Arbuckle <programmingkidx@gmail.com> Message-id: 20180709150235.7573-1-programmingkidx@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: tweak commit message and comment a little] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions