Fix for UIScrollView instances not scrolling properly in iOS apps that don't use SDL_iPhoneSetAnimationCallback

This commit is contained in:
DavidLudwig 2012-07-23 00:10:19 -04:00
parent 9c9a5abe82
commit 2368bcb083

View file

@ -61,6 +61,11 @@ UIKit_PumpEvents(_THIS)
do {
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, TRUE);
} while (result == kCFRunLoopRunHandledSource);
/* Make sure UIScrollView objects scroll properly. */
do {
result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, 0, TRUE);
} while(result == kCFRunLoopRunHandledSource);
}
}