Skip to content

Instantly share code, notes, and snippets.

- (void)scrollWheel:(NSEvent *)theEvent
{
if([theEvent modifierFlags] & NSShiftKeyMask)
[super scrollWheel:theEvent];
else
{
CGEventRef sourceEvent = [theEvent CGEvent];
CGEventRef cgEvent = CGEventCreateCopy(sourceEvent);
if(cgEvent)
{