mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Add source node and rect for action
This commit is contained in:
parent
b9cf73fb7b
commit
9142d3c231
@ -3825,6 +3825,12 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture
|
||||
}
|
||||
|
||||
if let highlightedItemIndex = self.highlightedItemIndex {
|
||||
for itemNode in self.itemNodes {
|
||||
if itemNode.index == highlightedItemIndex {
|
||||
itemNode.selected()
|
||||
break
|
||||
}
|
||||
}
|
||||
self.items[highlightedItemIndex].selected(listView: self)
|
||||
}
|
||||
self.selectionTouchLocation = nil
|
||||
|
@ -523,6 +523,9 @@ open class ListViewItemNode: ASDisplayNode {
|
||||
open func setHighlighted(_ highlighted: Bool, at point: CGPoint, animated: Bool) {
|
||||
}
|
||||
|
||||
open func selected() {
|
||||
}
|
||||
|
||||
open func isReorderable(at point: CGPoint) -> Bool {
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user