[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.
This commit is contained in:
Jesse Bounds
2016-06-29 11:14:34 -07:00
committed by GitHub
parent 2933ef1c09
commit f7b646cac5

View File

@@ -25,7 +25,7 @@ public:
perform
};
source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context);
CFRunLoopAddSource(loop, source, kCFRunLoopDefaultMode);
CFRunLoopAddSource(loop, source, kCFRunLoopCommonModes);
}
~Impl() {