mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-11 22:09:22 +00:00
Fix expansionProgress
This commit is contained in:
parent
556d39a952
commit
f348a8809b
@ -75,7 +75,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 && (progress <= 1.0 || self.expansionProgress != 1.0) {
|
||||
if abs(newProgress - self.expansionProgress) > 0.0001 {
|
||||
self.expansionProgress = newProgress
|
||||
|
||||
let transition: ContainedViewLayoutTransition = animated ? .animated(duration: 0.3, curve: ContainedViewLayoutTransitionCurve.slide) : .immediate
|
||||
|
Loading…
x
Reference in New Issue
Block a user