From 2368bcb083cbae3f1dac07f2a6d534716f404cdd Mon Sep 17 00:00:00 2001 From: DavidLudwig Date: Mon, 23 Jul 2012 00:10:19 -0400 Subject: [PATCH] Fix for UIScrollView instances not scrolling properly in iOS apps that don't use SDL_iPhoneSetAnimationCallback --- src/video/uikit/SDL_uikitevents.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/uikit/SDL_uikitevents.m b/src/video/uikit/SDL_uikitevents.m index ddd6b3d02..ff08e1533 100644 --- a/src/video/uikit/SDL_uikitevents.m +++ b/src/video/uikit/SDL_uikitevents.m @@ -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); } }