summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-06-29 11:14:34 -0700
committerGitHub <noreply@github.com>2016-06-29 11:14:34 -0700
commitf7b646cac59e1a31157a8eebae595b613d548971 (patch)
tree2d9d7e498beca1fa317f11cc2fac64df4604cd35 /platform/darwin
parent2933ef1c09f9bcd446c01b029f90a0bb7b6d1228 (diff)
downloadqtlocation-mapboxgl-f7b646cac59e1a31157a8eebae595b613d548971.tar.gz
[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.
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/src/async_task.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/async_task.cpp b/platform/darwin/src/async_task.cpp
index 513629726b..48457d24a8 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() {