Discarded uninteresting scroll events.
This commit is contained in:
parent
c9163e56d1
commit
171db6d6cb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user