Initial support for gallery content transition rect

This commit is contained in:
Ali
2019-12-20 20:25:15 +04:00
parent 0e1308b63f
commit 8963691778
62 changed files with 181 additions and 130 deletions

View File

@@ -888,7 +888,7 @@ final class InstantPageControllerNode: ASDisplayNode, UIScrollViewDelegate {
self.present(controller, ContextMenuControllerPresentationArguments(sourceNodeAndRect: { [weak self] in
if let strongSelf = self {
for (_, itemNode) in strongSelf.visibleItemsWithNodes {
if let (node, _) = itemNode.transitionNode(media: media) {
if let (node, _, _) = itemNode.transitionNode(media: media) {
return (strongSelf.scrollNode, node.convert(node.bounds, to: strongSelf.scrollNode), strongSelf, strongSelf.bounds)
}
}