Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use correct starting angle for initial user pan check #62

Merged
merged 1 commit into from
Jan 16, 2018

Conversation

caplan
Copy link
Contributor

@caplan caplan commented Jan 16, 2018

our check for initial user pan was firing prematurely because we were using the wrong starting angle for comparison.

@caplan
Copy link
Contributor Author

caplan commented Jan 16, 2018

@Veronique and @thiagopnts please review

@@ -10,6 +10,8 @@
#import "NYT360EulerAngleCalculations.h"
#import "NYT360CameraPanGestureRecognizer.h"

static const CGPoint kStartingPosition = { 3.14, 0 };
Copy link
Contributor

@Veronique Veronique Jan 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.
Can you rename the constant variable to startingPosition or perhaps cameraStartingPosition? The k is very old school and in ObjectiveC constants typically start with a lower case letter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, fixed

@thiagopnts
Copy link
Contributor

LGTM 💯

@caplan
Copy link
Contributor Author

caplan commented Jan 16, 2018

can one of you merge? I don't have permissions.

@thiagopnts thiagopnts merged commit dd9f55e into nytimes:develop Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants