mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Emoji animations improvements
This commit is contained in:
@@ -1046,7 +1046,9 @@ public final class AnimatedStickerNode: ASDisplayNode {
|
||||
if frame.isLastFrame {
|
||||
var stopped = false
|
||||
var stopNow = false
|
||||
if case .once = strongSelf.playbackMode {
|
||||
if case .still = strongSelf.playbackMode {
|
||||
stopNow = true
|
||||
} else if case .once = strongSelf.playbackMode {
|
||||
stopNow = true
|
||||
} else if case let .count(count) = strongSelf.playbackMode {
|
||||
strongSelf.currentLoopCount += 1
|
||||
@@ -1143,7 +1145,9 @@ public final class AnimatedStickerNode: ASDisplayNode {
|
||||
if frame.isLastFrame {
|
||||
var stopped = false
|
||||
var stopNow = false
|
||||
if case .once = strongSelf.playbackMode {
|
||||
if case .still = strongSelf.playbackMode {
|
||||
stopNow = true
|
||||
} else if case .once = strongSelf.playbackMode {
|
||||
stopNow = true
|
||||
} else if case let .count(count) = strongSelf.playbackMode {
|
||||
strongSelf.currentLoopCount += 1
|
||||
|
||||
Reference in New Issue
Block a user