mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix chart zooming crash
This commit is contained in:
@@ -220,8 +220,13 @@ open class ManagedAnimationNode: ASDisplayNode {
|
||||
state.relativeTime += animationAdvancement
|
||||
|
||||
if state.relativeTime >= duration && !self.didTryAdvancingState {
|
||||
self.didTryAdvancingState = true
|
||||
self.advanceState()
|
||||
if state.item.loop && self.trackStack.isEmpty {
|
||||
state.frameIndex = nil
|
||||
state.relativeTime = 0.0
|
||||
} else {
|
||||
self.didTryAdvancingState = true
|
||||
self.advanceState()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user