(svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-)

This commit is contained in:
bjarni 2006-07-04 19:02:49 +00:00
parent 6f75eac41a
commit 0f300a256c

View File

@ -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: