diff options
author | bjarni <bjarni@openttd.org> | 2006-07-04 19:02:49 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-07-04 19:02:49 +0000 |
commit | e3398f09e765d6401e4014efb90d14b8227421af (patch) | |
tree | a2ca9304aaae5fe41c428f537e3c5e05cf43dcd9 /video | |
parent | 435300814ae4d7102a7f2b75089177e3acbc2302 (diff) | |
download | openttd-e3398f09e765d6401e4014efb90d14b8227421af.tar.xz |
(svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-)
Diffstat (limited to 'video')
-rw-r--r-- | video/cocoa_v.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/cocoa_v.m b/video/cocoa_v.m index b4b026c01..4de6af703 100644 --- a/video/cocoa_v.m +++ b/video/cocoa_v.m @@ -649,11 +649,11 @@ static bool QZ_PollEvent(void) break; case NSScrollWheel: - if ([ event deltaX ] > 0.0 || [ event deltaY ] > 0.0) { /* Scroll up */ + if ([ event deltaY ] > 0.0) { /* Scroll up */ _cursor.wheel--; - } else { /* Scroll down */ + } else if ([ event deltaY ] < 0.0) { /* Scroll down */ _cursor.wheel++; - } + } /* else: deltaY was 0.0 and we don't want to do anything */ break; default: |