mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Stories
This commit is contained in:
parent
e18e007b10
commit
a91cce0980
@ -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 []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user