diff --git a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerComponent.swift b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerComponent.swift index 2769bd390b..a64b8c9ed0 100644 --- a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerComponent.swift @@ -560,8 +560,11 @@ public final class StoryItemSetContainerComponent: Component { } if self.itemsContainerView.frame.contains(point) { - if !self.isPointInsideContentArea(point: point) { - return [] + if self.viewListDisplayState != .hidden { + } else { + if !self.isPointInsideContentArea(point: point) { + return [] + } } } diff --git a/submodules/TelegramUI/Components/Stories/StoryFooterPanelComponent/Sources/StoryFooterPanelComponent.swift b/submodules/TelegramUI/Components/Stories/StoryFooterPanelComponent/Sources/StoryFooterPanelComponent.swift index 6241d22dc9..6836daf357 100644 --- a/submodules/TelegramUI/Components/Stories/StoryFooterPanelComponent/Sources/StoryFooterPanelComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryFooterPanelComponent/Sources/StoryFooterPanelComponent.swift @@ -419,7 +419,7 @@ public final class StoryFooterPanelComponent: Component { } let minContentX: CGFloat = 16.0 - let maxContentX: CGFloat = floor((availableSize.width - contentWidth) * 0.5) + let maxContentX: CGFloat = (availableSize.width - contentWidth) * 0.5 var contentX: CGFloat = minContentX.interpolate(to: maxContentX, amount: component.expandFraction) let avatarsNodeFrame = CGRect(origin: CGPoint(x: contentX, y: floor((size.height - avatarsSize.height) * 0.5)), size: avatarsSize)