Fix text selection

This commit is contained in:
Peter
2019-08-30 02:05:58 +04:00
parent 628eb10f2e
commit 749a35b11c
7 changed files with 2218 additions and 2164 deletions

View File

@@ -717,9 +717,6 @@ private final class ContextControllerNode: ViewControllerTracingNode, UIScrollVi
}
}
let mappedPoint = self.view.convert(point, to: self.scrollNode.view)
if self.actionsContainerNode.frame.contains(mappedPoint) {
return self.actionsContainerNode.hitTest(self.view.convert(point, to: self.actionsContainerNode.view), with: event)
}
if let contentParentNode = self.contentParentNode {
let contentPoint = self.view.convert(point, to: contentParentNode.contentNode.view)
if let result = contentParentNode.contentNode.hitTest(contentPoint, with: event) {
@@ -731,6 +728,10 @@ private final class ContextControllerNode: ViewControllerTracingNode, UIScrollVi
}
}
if self.actionsContainerNode.frame.contains(mappedPoint) {
return self.actionsContainerNode.hitTest(self.view.convert(point, to: self.actionsContainerNode.view), with: event)
}
return self.dismissNode.view
}
}