diff --git a/TelegramUI/NavigationBarSearchContentNode.swift b/TelegramUI/NavigationBarSearchContentNode.swift index c7d78322..d2416ef8 100644 --- a/TelegramUI/NavigationBarSearchContentNode.swift +++ b/TelegramUI/NavigationBarSearchContentNode.swift @@ -73,7 +73,7 @@ class NavigationBarSearchContentNode: NavigationBarContentNode { func updateExpansionProgress(_ progress: CGFloat, animated: Bool = false) { let newProgress = max(0.0, min(10.0, progress)) - if abs(newProgress - self.expansionProgress) > 0.0001 { + if abs(newProgress - self.expansionProgress) > 0.0001 && (progress <= 1 || self.expansionProgress != 1) { self.expansionProgress = newProgress let animationCurve: ContainedViewLayoutTransitionCurve = .custom(0.33, 0.52, 0.25, 0.99)