mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various fixes
This commit is contained in:
@@ -1158,7 +1158,7 @@ open class InteractiveTextNode: ASDisplayNode, TextNodeProtocol, UIGestureRecogn
|
||||
public func textRangeRects(in range: NSRange) -> (rects: [CGRect], start: TextRangeRectEdge, end: TextRangeRectEdge)? {
|
||||
return self.cachedLayout?.rangeRects(in: range)
|
||||
}
|
||||
|
||||
|
||||
override public init() {
|
||||
super.init()
|
||||
|
||||
@@ -1946,7 +1946,7 @@ open class InteractiveTextNode: ASDisplayNode, TextNodeProtocol, UIGestureRecogn
|
||||
}
|
||||
} else {
|
||||
contentItemAnimation = .None
|
||||
contentItemLayer = TextContentItemLayer()
|
||||
contentItemLayer = TextContentItemLayer(displaysAsynchronously: self.displaysAsynchronously)
|
||||
self.contentItemLayers[contentItem.id] = contentItemLayer
|
||||
self.layer.addSublayer(contentItemLayer)
|
||||
}
|
||||
@@ -2461,8 +2461,9 @@ final class TextContentItemLayer: SimpleLayer {
|
||||
private var isAnimating: Bool = false
|
||||
private var currentContentMask: RenderMask?
|
||||
|
||||
override init() {
|
||||
init(displaysAsynchronously: Bool) {
|
||||
self.renderNode = RenderNode()
|
||||
self.renderNode.displaysAsynchronously = displaysAsynchronously
|
||||
|
||||
super.init()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user