Skip to content

Commit

Permalink
Suggestion from Apple: use kCFRunLoopCommonModes which does more comp…
Browse files Browse the repository at this point in the history
…lete event processing
  • Loading branch information
slouken committed Sep 9, 2016
1 parent da1e3d6 commit 61c0f2c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/video/uikit/SDL_uikitevents.m
Expand Up @@ -56,14 +56,9 @@ touch events to get processed (which is important to get certain
/* 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();
}
Expand Down

0 comments on commit 61c0f2c

Please sign in to comment.