mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-01 10:23:15 +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 {
|
if let highlightedItemIndex = self.highlightedItemIndex {
|
||||||
|
for itemNode in self.itemNodes {
|
||||||
|
if itemNode.index == highlightedItemIndex {
|
||||||
|
itemNode.selected()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
self.items[highlightedItemIndex].selected(listView: self)
|
self.items[highlightedItemIndex].selected(listView: self)
|
||||||
}
|
}
|
||||||
self.selectionTouchLocation = nil
|
self.selectionTouchLocation = nil
|
||||||
|
@ -523,6 +523,9 @@ open class ListViewItemNode: ASDisplayNode {
|
|||||||
open func setHighlighted(_ highlighted: Bool, at point: CGPoint, animated: Bool) {
|
open func setHighlighted(_ highlighted: Bool, at point: CGPoint, animated: Bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open func selected() {
|
||||||
|
}
|
||||||
|
|
||||||
open func isReorderable(at point: CGPoint) -> Bool {
|
open func isReorderable(at point: CGPoint) -> Bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user