summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-07-04 19:02:49 +0000
committerbjarni <bjarni@openttd.org>2006-07-04 19:02:49 +0000
commit0f300a256ce207689a652ec0df7a0bf7c00d4ff6 (patch)
treea2ca9304aaae5fe41c428f537e3c5e05cf43dcd9 /video
parent6f75eac41a2810f6a6c42ecea6768fa90f90aad9 (diff)
downloadopenttd-0f300a256ce207689a652ec0df7a0bf7c00d4ff6.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.m6
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: