Skip to content

Commit 7068735

Browse files
Support for implementing gestures on nodes within a CCScrollView (including CCTableView and CCTableViewCell).
1 parent 3b0c05a commit 7068735

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cocos2d-ui/CCScrollView.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,13 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
761761
return (otherGestureRecognizer == _panRecognizer || otherGestureRecognizer == _tapRecognizer);
762762
}
763763

764+
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
765+
shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
766+
{
767+
return true;
768+
}
769+
770+
764771
- (void) onEnterTransitionDidFinish
765772
{
766773
// Add recognizers to view

0 commit comments

Comments
 (0)