Skip to content

I have a confused about the code #245

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

Open
zqs-zjj-1208 opened this issue May 16, 2017 · 0 comments
Open

I have a confused about the code #245

zqs-zjj-1208 opened this issue May 16, 2017 · 0 comments

Comments

@zqs-zjj-1208
Copy link

the codes below has been wrote velocity.x > 0 twice ,i don't know why

		// Moving Right
		if (velocity.x > 0)
		{
			if (currentX > 0)
			{
				if ([self shouldDisplayMenu:menu forViewController:self.visibleViewController])
					[self openMenu:(velocity.x > 0) ? MenuLeft : MenuRight withDuration:MENU_QUICK_SLIDE_ANIMATION_DURATION andCompletion:nil];
			}
			else
			{
				[self closeMenuWithDuration:MENU_QUICK_SLIDE_ANIMATION_DURATION andCompletion:nil];
			}
		}
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

No branches or pull requests

1 participant