From f7b646cac59e1a31157a8eebae595b613d548971 Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Wed, 29 Jun 2016 11:14:34 -0700 Subject: [PATCH] [ios, macos] Use common instead of default mode for run loop source (#5503) The map events instigated by certain actions (i.e. updates from a UIScrollView) are not processed by the run loop with `kCFRunLoopDefaultMode`until the thread is idle. This changes the mode to `kCFRunLoopCommonModes` to avoid this issue. --- platform/darwin/src/async_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/darwin/src/async_task.cpp b/platform/darwin/src/async_task.cpp index 513629726..48457d24a 100644 --- a/platform/darwin/src/async_task.cpp +++ b/platform/darwin/src/async_task.cpp @@ -25,7 +25,7 @@ public: perform }; source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context); - CFRunLoopAddSource(loop, source, kCFRunLoopDefaultMode); + CFRunLoopAddSource(loop, source, kCFRunLoopCommonModes); } ~Impl() {