Fix for UIScrollView instances not scrolling properly in iOS apps that don't use SDL_iPhoneSetAnimationCallback
This commit is contained in:
parent
9c9a5abe82
commit
2368bcb083
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ UIKit_PumpEvents(_THIS)
|
||||||
do {
|
do {
|
||||||
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, TRUE);
|
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, TRUE);
|
||||||
} while (result == kCFRunLoopRunHandledSource);
|
} while (result == kCFRunLoopRunHandledSource);
|
||||||
|
|
||||||
|
/* Make sure UIScrollView objects scroll properly. */
|
||||||
|
do {
|
||||||
|
result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, 0, TRUE);
|
||||||
|
} while(result == kCFRunLoopRunHandledSource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue