Skip to content

Commit 03012d6

Browse files
committed
Merge pull request #701 from NickyWeber/bugfix/#663_CCScrollview_steals_touch
Bugfix: CCbutton inside a CCScrollview steals touch and breaks all touch events #663
2 parents 5f9312a + f6c81ea commit 03012d6

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)