We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ca489 commit dd3dea0Copy full SHA for dd3dea0
1 file changed
MZSelectableLabel/MZSelectableLabel.m
@@ -454,8 +454,13 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
454
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
455
{
456
[super touchesMoved:touches withEvent:event];
457
-
458
- self.isTouchMoved = YES;
+
+ UITouch *currentTouch = touches.anyObject;
459
+ if (!CGPointEqualToPoint([currentTouch locationInView:currentTouch.view],
460
+ [currentTouch previousLocationInView:currentTouch.view]))
461
+ {
462
+ self.isTouchMoved = YES;
463
+ }
464
}
465
466
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
0 commit comments