I’m using this code to check for scrolling:
scrollKeyMonitor = [NSEvent addLocalMonitorForEventsMatchingMask:NSScrollWheelMask handler:^(NSEvent *incomingEvent)
{
//printf("we are scrolling!");
return incomingEvent;
}];
How do I check the y values of the scroll to see if we are going up or down?
Thanks
You can set an initial position. Then test to see if the current position is lower / higher to determine if user is scrolling up or down. Then reset the initial position to the current position for the next movement.