mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Don't call updateAbsoluteRect for off-screen items
This commit is contained in:
parent
211388ed50
commit
71a79cd65c
@ -547,7 +547,10 @@ open class ListViewItemNode: ASDisplayNode, AccessibilityFocusableNode {
|
||||
|
||||
public func updateFrame(_ frame: CGRect, within containerSize: CGSize) {
|
||||
self.frame = frame
|
||||
self.updateAbsoluteRect(frame, within: containerSize)
|
||||
if frame.maxY < 0.0 || frame.minY > containerSize.height {
|
||||
} else {
|
||||
self.updateAbsoluteRect(frame, within: containerSize)
|
||||
}
|
||||
if let extractedBackgroundNode = self.extractedBackgroundNode {
|
||||
extractedBackgroundNode.frame = frame.offsetBy(dx: 0.0, dy: -self.insets.top)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user