refs #2922: update display link in all common modes (inc. scrolling)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user