Merge branch 'development'
This commit is contained in:
commit
eed03b59c8
|
|
@ -87,8 +87,8 @@
|
|||
return YES;
|
||||
}
|
||||
if (gestureRecognizer == self.calendar.scopeGesture) {
|
||||
CGPoint velocity = [self.collectionView.panGestureRecognizer velocityInView:self.collectionView];
|
||||
BOOL shouldStart = (ABS(velocity.x)<ABS(velocity.y));
|
||||
CGPoint velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.calendar.daysContainer];
|
||||
BOOL shouldStart = (ABS(velocity.x)<=ABS(velocity.y));
|
||||
if (shouldStart) {
|
||||
self.calendar.collectionView.panGestureRecognizer.enabled = NO;
|
||||
self.calendar.collectionView.panGestureRecognizer.enabled = YES;
|
||||
|
|
@ -98,6 +98,11 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
|
||||
{
|
||||
return otherGestureRecognizer == self.collectionView.panGestureRecognizer && self.collectionView.decelerating;
|
||||
}
|
||||
|
||||
- (void)scopeTransitionDidBegin:(UIPanGestureRecognizer *)panGesture
|
||||
{
|
||||
self.state = FSCalendarTransitionStateInProgress;
|
||||
|
|
|
|||
Loading…
Reference in New Issue