From f3e989dbfa2e91f1debb36ce3896fcf84e806408 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 20 Jun 2023 14:17:47 +0300 Subject: [PATCH] Fix caption --- .../Sources/StoryContentCaptionComponent.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContentCaptionComponent.swift b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContentCaptionComponent.swift index 082c3c9d6c..32194ca7ad 100644 --- a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContentCaptionComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContentCaptionComponent.swift @@ -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