diff --git a/FTCoreText/FTCoreTextView.m b/FTCoreText/FTCoreTextView.m index 3bce4c2..c61c0ce 100755 --- a/FTCoreText/FTCoreTextView.m +++ b/FTCoreText/FTCoreTextView.m @@ -1362,6 +1362,12 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { + UITouch *touch = [touches anyObject]; + CGPoint currentTouchPosition = [touch locationInView:touch.window]; + CGPoint oldTouchPosition = [touch previousLocationInView:touch.window]; + if (CGPointEqualToPoint(currentTouchPosition, oldTouchPosition)) { + return; + } _touchedData = nil; [_selectionsViews makeObjectsPerformSelector:@selector(removeFromSuperview)]; _selectionsViews = nil; @@ -1560,4 +1566,4 @@ + (NSData *)ftct_dataWithBase64EncodedString:(NSString *)string return outputLength? outputData: nil; } -@end \ No newline at end of file +@end