mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Limit emoji avatars looping
This commit is contained in:
@@ -3157,6 +3157,7 @@ public final class EmojiPagerContentComponent: Component {
|
||||
}
|
||||
|
||||
public var onContentsUpdate: () -> Void = {}
|
||||
public var onLoop: () -> Void = {}
|
||||
|
||||
public init(
|
||||
item: Item,
|
||||
@@ -3413,6 +3414,10 @@ public final class EmojiPagerContentComponent: Component {
|
||||
self.onUpdateDisplayPlaceholder(false, 0.2)
|
||||
self.animateAlpha(from: 0.0, to: 1.0, duration: 0.18)
|
||||
}
|
||||
|
||||
if didLoop {
|
||||
self.onLoop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user