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

@@ -1997,6 +1997,13 @@ public final class ChatListNode: ListView {
}
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 peer = self.peerAtPoint(location) {
if peer.id == state.initialPeerId {