mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-20 13:19:16 +00:00
Optimize
This commit is contained in:
parent
f723452756
commit
f39105a8f4
@ -831,15 +831,18 @@ 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.
|
||||||
NSRange range = NSMakeRange(0, 0);
|
if (_highlightRange.length > 0) {
|
||||||
[self _linkAttributeValueAtPoint:point
|
NSRange range = NSMakeRange(0, 0);
|
||||||
attributeName:NULL
|
CGPoint point = [[touches anyObject] locationInView:self.view];
|
||||||
range:&range
|
[self _linkAttributeValueAtPoint:point
|
||||||
inAdditionalTruncationMessage:NULL];
|
attributeName:NULL
|
||||||
|
range:&range
|
||||||
|
inAdditionalTruncationMessage:NULL];
|
||||||
|
|
||||||
if (!NSEqualRanges(_highlightRange, range)) {
|
if (!NSEqualRanges(_highlightRange, range)) {
|
||||||
[self _clearHighlightIfNecessary];
|
[self _clearHighlightIfNecessary];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user