Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
authorSam Lantinga
Thu, 08 Sep 2016 20:38:23 -0700
changeset 10314722dd7d03f81
parent 10312 943b722a8e61
child 10315 da4e06838c1e
Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
src/video/uikit/SDL_uikitevents.m
     1.1 --- a/src/video/uikit/SDL_uikitevents.m	Tue Sep 06 13:13:03 2016 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitevents.m	Thu Sep 08 20:38:23 2016 -0700
     1.3 @@ -56,14 +56,9 @@
     1.4      /* Pump most event types. */
     1.5      SInt32 result;
     1.6      do {
     1.7 -        result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, seconds, TRUE);
     1.8 +        result = CFRunLoopRunInMode(kCFRunLoopCommonModes, seconds, TRUE);
     1.9      } while (result == kCFRunLoopRunHandledSource);
    1.10  
    1.11 -    /* Make sure UIScrollView objects scroll properly. */
    1.12 -    do {
    1.13 -        result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, seconds, TRUE);
    1.14 -    } while(result == kCFRunLoopRunHandledSource);
    1.15 -
    1.16      /* See the comment in the function definition. */
    1.17      UIKit_GL_RestoreCurrentContext();
    1.18  }