src/video/cocoa/SDL_cocoamousetap.m
changeset 10122 f0645cd8fd39
parent 9998 f67cf37e9cd4
child 10146 471eb08040ce
     1.1 --- a/src/video/cocoa/SDL_cocoamousetap.m	Fri Mar 18 22:15:53 2016 -0300
     1.2 +++ b/src/video/cocoa/SDL_cocoamousetap.m	Sun Mar 20 15:35:34 2016 -0300
     1.3 @@ -115,9 +115,8 @@
     1.4              newLocation.y += (eventLocation.y - NSMaxY(windowRect) + 1);
     1.5          }
     1.6  
     1.7 -        CGSetLocalEventsSuppressionInterval(0);
     1.8          CGWarpMouseCursorPosition(newLocation);
     1.9 -        CGSetLocalEventsSuppressionInterval(0.25);
    1.10 +        CGAssociateMouseAndMouseCursorPosition(YES);
    1.11  
    1.12          if ((CGEventMaskBit(type) & movementEventsMask) == 0) {
    1.13              /* For click events, we just constrain the event to the window, so