mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Web app improvements
This commit is contained in:
@@ -109,6 +109,8 @@ public final class AnimatedStickerComponent: Component {
|
||||
playbackMode = .loop
|
||||
} else if component.isAnimating {
|
||||
playbackMode = .once
|
||||
} else {
|
||||
animationNode.autoplay = true
|
||||
}
|
||||
animationNode.setup(source: source, width: Int(component.size.width * component.animation.scale), height: Int(component.size.height * component.animation.scale), playbackMode: playbackMode, mode: .direct(cachePathPrefix: nil))
|
||||
animationNode.visibility = self.isInHierarchy
|
||||
|
||||
Reference in New Issue
Block a user