# HG changeset patch # User bjarni # Date 1152039769 0 # Node ID a8406022f8bc16c4c7ed02a93476018e013f86e3 # Parent b161c44a62c9888ecce09a1bd85854ad73b7d030 (svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-) diff -r b161c44a62c9 -r a8406022f8bc video/cocoa_v.m --- a/video/cocoa_v.m Tue Jul 04 18:59:44 2006 +0000 +++ b/video/cocoa_v.m Tue Jul 04 19:02:49 2006 +0000 @@ -649,11 +649,11 @@ 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: