mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various Fixes
This commit is contained in:
@@ -242,4 +242,14 @@ final class CommandChatInputContextPanelNode: ChatInputContextPanelNode {
|
||||
let listViewFrame = self.listView.frame
|
||||
return self.listView.hitTest(CGPoint(x: point.x - listViewFrame.minX, y: point.y - listViewFrame.minY), with: event)
|
||||
}
|
||||
|
||||
override var topItemFrame: CGRect? {
|
||||
var topItemFrame: CGRect?
|
||||
self.listView.forEachItemNode { itemNode in
|
||||
if topItemFrame == nil {
|
||||
topItemFrame = itemNode.frame
|
||||
}
|
||||
}
|
||||
return topItemFrame
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user