mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
Fix caption
This commit is contained in:
parent
c81cdc271d
commit
f3e989dbfa
@ -225,9 +225,6 @@ final class StoryContentCaptionComponent: Component {
|
||||
let expandDistance: CGFloat = 50.0
|
||||
var expandFraction: CGFloat = self.scrollView.contentOffset.y / expandDistance
|
||||
expandFraction = max(0.0, min(1.0, expandFraction))
|
||||
if self.scrollView.contentSize.height < self.scrollView.bounds.height + expandDistance {
|
||||
expandFraction = 0.0
|
||||
}
|
||||
|
||||
let isExpanded = expandFraction > 0.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user