mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-19 20:21:26 +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(node, @"Cannot move a nil node to a view");
|
||||||
ASDisplayNodeAssert(view, @"Cannot move a node to a non-existent 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];
|
[view addSubview:node.view];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user