mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 10:30:42 +00:00
Fix voice chat pin icon
This commit is contained in:
parent
2e71f2f0df
commit
0024389227
@ -70,7 +70,7 @@ private class VoiceChatPinButtonNode: HighlightTrackingButtonNode {
|
||||
self.isPinned = pinned
|
||||
|
||||
self.pinButtonTitleNode.alpha = self.isPinned ? 1.0 : 0.0
|
||||
if animated {
|
||||
if animated && pinned != wasPinned {
|
||||
if wasPinned {
|
||||
self.pinButtonTitleNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.2)
|
||||
self.pinButtonTitleNode.layer.animatePosition(from: CGPoint(), to: CGPoint(x: self.pinButtonTitleNode.frame.width, y: 0.0), duration: 0.2, additive: true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user