Mercurial > hg > openttd
changeset 4116:d6635ba46a09 draft
(svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-)
author | bjarni <bjarni@openttd.org> |
---|---|
date | Tue, 04 Jul 2006 19:02:49 +0000 |
parents | b8467c4fe746 |
children | fe3b854f5f81 |
files | video/cocoa_v.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/video/cocoa_v.m +++ b/video/cocoa_v.m @@ -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: