Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-07-26 16:39:26 +03:00
parent df7a68ea73
commit 472dbd21b1
10 changed files with 208 additions and 80 deletions

View File

@@ -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 {