mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various fixes
This commit is contained in:
parent
be662de71d
commit
b317ba1ee7
33 changed files with 260 additions and 85 deletions
|
|
@ -163,6 +163,7 @@ public final class AnimatedStickerNode: ASDisplayNode {
|
|||
public var completed: (Bool) -> Void = { _ in }
|
||||
public var frameUpdated: (Int, Int) -> Void = { _, _ in }
|
||||
public private(set) var currentFrameIndex: Int = 0
|
||||
public private(set) var currentFrameCount: Int = 0
|
||||
private var playFromIndex: Int?
|
||||
|
||||
private let timer = Atomic<SwiftSignalKit.Timer?>(value: nil)
|
||||
|
|
@ -452,6 +453,7 @@ public final class AnimatedStickerNode: ASDisplayNode {
|
|||
|
||||
strongSelf.frameUpdated(frame.index, frame.totalFrames)
|
||||
strongSelf.currentFrameIndex = frame.index
|
||||
strongSelf.currentFrameCount = frame.totalFrames
|
||||
|
||||
if frame.isLastFrame {
|
||||
var stopped = false
|
||||
|
|
@ -556,6 +558,7 @@ public final class AnimatedStickerNode: ASDisplayNode {
|
|||
|
||||
strongSelf.frameUpdated(frame.index, frame.totalFrames)
|
||||
strongSelf.currentFrameIndex = frame.index
|
||||
strongSelf.currentFrameCount = frame.totalFrames;
|
||||
|
||||
if frame.isLastFrame {
|
||||
var stopped = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue