Skip to content

Commit f6c81ea

Browse files
committed
Scrollview will stop panning if touched and won't steal touch anymore.
CCTapDownGestureRecognizer touch began phase implemented with very old iOS interface.
1 parent 7625920 commit f6c81ea

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

cocos2d-ui/CCScrollView.m

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,16 @@ @interface CCTapDownGestureRecognizer : UIGestureRecognizer
6666

6767
@implementation CCTapDownGestureRecognizer
6868

69-
-(void)touchBegan:(UITouch *)touch withEvent:(UIEvent *)event
69+
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
7070
{
7171
if (self.state == UIGestureRecognizerStatePossible)
7272
{
7373
self.state = UIGestureRecognizerStateRecognized;
7474
}
7575
}
7676

77-
-(void)touchMoved:(UITouch *)touch withEvent:(UIEvent *)event
78-
{
79-
self.state = UIGestureRecognizerStateFailed;
80-
}
81-
82-
-(void)touchEnded:(UITouch *)touch withEvent:(UIEvent *)event
83-
{
84-
self.state = UIGestureRecognizerStateFailed;
85-
}
8677
@end
78+
8779
#endif
8880

8981

0 commit comments

Comments
 (0)