1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

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
{
_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