From 0c1448a3c9910d810349782b115af2ba33680597 Mon Sep 17 00:00:00 2001 From: Alexander Zimin Date: Mon, 24 Jun 2019 00:24:13 +0300 Subject: [PATCH] Added missing scroll behavour --- TelegramUI/NavigationBarSearchContentNode.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)