mirror of https://github.com/encounter/SDL.git
Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
This commit is contained in:
parent
da1e3d6938
commit
61c0f2cf64
|
@ -56,12 +56,7 @@ UIKit_PumpEvents(_THIS)
|
||||||
/* Pump most event types. */
|
/* Pump most event types. */
|
||||||
SInt32 result;
|
SInt32 result;
|
||||||
do {
|
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);
|
} while (result == kCFRunLoopRunHandledSource);
|
||||||
|
|
||||||
/* See the comment in the function definition. */
|
/* See the comment in the function definition. */
|
||||||
|
|
Loading…
Reference in New Issue