Pārlūkot izejas kodu

Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing

Sam Lantinga 8 gadi atpakaļ
vecāks
revīzija
61c0f2cf64
1 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. 1 6
      src/video/uikit/SDL_uikitevents.m

+ 1 - 6
src/video/uikit/SDL_uikitevents.m

@@ -56,14 +56,9 @@ UIKit_PumpEvents(_THIS)
     /* Pump most event types. */
     SInt32 result;
     do {
-        result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, seconds, TRUE);
+        result = CFRunLoopRunInMode(kCFRunLoopCommonModes, seconds, TRUE);
     } while (result == kCFRunLoopRunHandledSource);
 
-    /* Make sure UIScrollView objects scroll properly. */
-    do {
-        result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, seconds, TRUE);
-    } while(result == kCFRunLoopRunHandledSource);
-
     /* See the comment in the function definition. */
     UIKit_GL_RestoreCurrentContext();
 }