Web app improvements

This commit is contained in:
Ilya Laktyushin
2024-06-29 01:34:03 +04:00
parent 9146416f68
commit 0a08c0908b
3 changed files with 11 additions and 5 deletions

View File

@@ -157,10 +157,6 @@ final class AttachmentContainer: ASDisplayNode, ASGestureRecognizerDelegate {
}
if let view = otherGestureRecognizer.view, view.description.contains("WKChildScroll") {
return false
// let velocity = panGestureRecognizer.velocity(in: nil)
// if abs(velocity.x) > abs(velocity.y) * 2.0 {
// return false
// }
}
if let _ = otherGestureRecognizer.view?.asyncdisplaykit_node as? CollectionIndexNode {
return false
@@ -222,7 +218,7 @@ final class AttachmentContainer: ASDisplayNode, ASGestureRecognizerDelegate {
let currentHitView = self.hitTest(point, with: nil)
var scrollViewAndListNode = self.findScrollView(view: currentHitView)
if scrollViewAndListNode?.0.frame.height == self.frame.width {
if scrollViewAndListNode?.0.frame.height == self.frame.width || scrollViewAndListNode?.0.isDescendant(of: self.view) == false {
scrollViewAndListNode = nil
}
let scrollView = scrollViewAndListNode?.0