Open zqs-zjj-1208 opened 7 years ago
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]; } }
the codes below has been wrote velocity.x > 0 twice ,i don't know why