nytimes/ios-360-videos

`reportInitialCameraMovementIfNeededViaMethod` called prematurely

Closed this issue · 0 comments

On startup, self reportInitialCameraMovementIfNeededViaMethod:NYT360UserInteractionMethodGyroscope is called before the user performs any interaction at all.

I think it's because 6c4cccd is causing the following block to be entered prematurely at NYT360CameraController.m:119:

if (distance(CGPointZero, self.currentPosition) > minimalRotationDistanceToReport) {
    [self reportInitialCameraMovementIfNeededViaMethod:NYT360UserInteractionMethodGyroscope];
}