mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Lock node's properties while pending view state is applied
This commit is contained in:
parent
b5b5f9f559
commit
c9d53517fa
@ -985,6 +985,7 @@ static inline void filterNodesInLayoutAtIndexesWithIntersectingNodes(
|
|||||||
- (void)applyPendingViewState
|
- (void)applyPendingViewState
|
||||||
{
|
{
|
||||||
ASDisplayNodeAssertMainThread();
|
ASDisplayNodeAssertMainThread();
|
||||||
|
ASDN::MutexLocker l(_propertyLock);
|
||||||
if (self.layerBacked) {
|
if (self.layerBacked) {
|
||||||
[_pendingViewState applyToLayer:self.layer];
|
[_pendingViewState applyToLayer:self.layer];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user