diff options
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: |