mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
iPad trackpad support improvements
This commit is contained in:
@@ -163,7 +163,7 @@ public class ChatListItem: ListViewItem, ChatListSearchItemNeighbour {
|
||||
self.interaction.groupSelected(groupId)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static func mergeType(item: ChatListItem, previousItem: ListViewItem?, nextItem: ListViewItem?) -> (first: Bool, last: Bool, firstWithHeader: Bool, nextIsPinned: Bool) {
|
||||
var first = false
|
||||
var last = false
|
||||
@@ -734,7 +734,7 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
||||
guard let strongSelf = self, let item = strongSelf.item else {
|
||||
return
|
||||
}
|
||||
item.interaction.activateChatPreview(item, strongSelf.contextContainer, gesture)
|
||||
item.interaction.activateChatPreview(item, strongSelf.contextContainer, gesture, nil)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -743,6 +743,13 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
||||
self.playbackStartDisposable.dispose()
|
||||
}
|
||||
|
||||
override func secondaryAction(at point: CGPoint) {
|
||||
guard let item = self.item else {
|
||||
return
|
||||
}
|
||||
item.interaction.activateChatPreview(item, self.contextContainer, nil, point)
|
||||
}
|
||||
|
||||
func setupItem(item: ChatListItem, synchronousLoads: Bool) {
|
||||
let previousItem = self.item
|
||||
self.item = item
|
||||
|
||||
Reference in New Issue
Block a user