Discarded uninteresting scroll events.

This commit is contained in:
Camilla Berglund 2012-03-28 22:39:48 +02:00
parent c9163e56d1
commit 171db6d6cb

View File

@ -479,7 +479,11 @@ static int convertMacKeyCode(unsigned int macKeyCode)
- (void)scrollWheel:(NSEvent *)event - (void)scrollWheel:(NSEvent *)event
{ {
_glfwInputScroll(window, [event deltaX], [event deltaY]); double deltaX = [event deltaX];
double deltaY = [event deltaY];
if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0)
_glfwInputScroll(window, deltaX, deltaY);
} }
@end @end