mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 19:40:19 +00:00
Enable nodes entering the visible range to display
This commit is contained in:
parent
fa2f36004b
commit
cd3ad1c86f
@ -54,6 +54,11 @@
|
||||
ASDisplayNodeAssert(node, @"Cannot move a nil node to a view");
|
||||
ASDisplayNodeAssert(view, @"Cannot move a node to a non-existent view");
|
||||
|
||||
// force any nodes that are about to come into view to have display enabled
|
||||
if (node.displaySuspended) {
|
||||
[node recursivelySetDisplaySuspended:NO];
|
||||
}
|
||||
|
||||
[view addSubview:node.view];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user