mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-20 21:29:00 +00:00
Optimize
This commit is contained in:
parent
f723452756
commit
f39105a8f4
@ -831,8 +831,10 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
|
|||||||
{
|
{
|
||||||
[super touchesMoved:touches withEvent:event];
|
[super touchesMoved:touches withEvent:event];
|
||||||
|
|
||||||
CGPoint point = [[touches anyObject] locationInView:self.view];
|
// If touch has moved out of the current highlight range, clear the highlight.
|
||||||
|
if (_highlightRange.length > 0) {
|
||||||
NSRange range = NSMakeRange(0, 0);
|
NSRange range = NSMakeRange(0, 0);
|
||||||
|
CGPoint point = [[touches anyObject] locationInView:self.view];
|
||||||
[self _linkAttributeValueAtPoint:point
|
[self _linkAttributeValueAtPoint:point
|
||||||
attributeName:NULL
|
attributeName:NULL
|
||||||
range:&range
|
range:&range
|
||||||
@ -842,6 +844,7 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
|
|||||||
[self _clearHighlightIfNecessary];
|
[self _clearHighlightIfNecessary];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void)_handleLongPress:(UILongPressGestureRecognizer *)longPressRecognizer
|
- (void)_handleLongPress:(UILongPressGestureRecognizer *)longPressRecognizer
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user