Commit 61c0f2cf6486d1434f8aa991338648dd6190dcc9

Sam Lantinga 2016-09-08T20:38:23

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/video/uikit/SDL_uikitevents.m b/src/video/uikit/SDL_uikitevents.m
index 7083e20..85d6dca 100644
--- a/src/video/uikit/SDL_uikitevents.m
+++ b/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();
 }