From 0f300a256ce207689a652ec0df7a0bf7c00d4ff6 Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 4 Jul 2006 19:02:49 +0000 Subject: [PATCH] (svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-) --- video/cocoa_v.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/cocoa_v.m b/video/cocoa_v.m index b4b026c010..4de6af703c 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: