refs #2922: update display link in all common modes (inc. scrolling)

This commit is contained in:
Justin R. Miller
2015-11-18 18:00:12 -08:00
parent 50a33e4e6d
commit 35441a26e9

View File

@@ -233,7 +233,7 @@ std::chrono::steady_clock::duration durationInSeconds(float duration)
// setup refresh driver
_displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(updateFromDisplayLink)];
_displayLink.frameInterval = MGLTargetFrameInterval;
[_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
_needsDisplayRefresh = YES;
// start paused if in IB