mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-31 18:30:12 +00:00
Don't allow peek on invisible items
This commit is contained in:
@@ -904,6 +904,11 @@ final class ChatMediaInputNode: ChatInputNode {
|
||||
} else {
|
||||
panes = [strongSelf.gifPane, strongSelf.stickerPane, strongSelf.trendingPane]
|
||||
}
|
||||
let panelPoint = strongSelf.view.convert(point, to: strongSelf.collectionListPanel.view)
|
||||
if panelPoint.y < strongSelf.collectionListPanel.frame.maxY {
|
||||
return .single(nil)
|
||||
}
|
||||
|
||||
for pane in panes {
|
||||
if pane.supernode != nil, pane.frame.contains(point) {
|
||||
if let pane = pane as? ChatMediaInputGifPane {
|
||||
|
||||
Reference in New Issue
Block a user