We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a20f8 commit 1bc98ceCopy full SHA for 1bc98ce
SWTableViewCell/PodFiles/SWLongPressGestureRecognizer.m
@@ -19,7 +19,12 @@ -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
19
{
20
[super touchesMoved:touches withEvent:event];
21
22
- self.state = UIGestureRecognizerStateFailed;
+ UITouch *touch = touches.anyObject;
23
+ if (CGPointEqualToPoint([touch locationInView:touch.view], [touch previousLocationInView:touch.view])) {
24
+ self.state = UIGestureRecognizerStateBegan;
25
+ } else {
26
+ self.state = UIGestureRecognizerStateCancelled;
27
+ }
28
}
29
30
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
0 commit comments