mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various Fixes
This commit is contained in:
@@ -2218,6 +2218,13 @@ public final class ChatHistoryListNode: ListView, ChatHistoryNode {
|
||||
}
|
||||
|
||||
private func handlePanSelection(location: CGPoint) {
|
||||
var location = location
|
||||
if location.y < self.insets.top {
|
||||
location.y = self.insets.top + 5.0
|
||||
} else if location.y > self.frame.height - self.insets.bottom {
|
||||
location.y = self.frame.height - self.insets.bottom - 5.0
|
||||
}
|
||||
|
||||
if let state = self.selectionPanState {
|
||||
if let messages = self.messagesAtPoint(location), let message = messages.first {
|
||||
if message.id == state.initialMessageId {
|
||||
|
||||
Reference in New Issue
Block a user