Attempt to work around WKWebView gesture recognizer bug

This commit is contained in:
Ali 2020-05-20 00:11:31 +04:00
parent 7e1bf68b71
commit 29b23c767f

View File

@ -127,6 +127,21 @@ final class WebEmbedPlayerNode: ASDisplayNode, WKNavigationDelegate {
}) })
} }
deinit {
func disableGestures(view: UIView) {
if let recognizers = view.gestureRecognizers {
for recognizer in recognizers {
recognizer.isEnabled = false
}
}
for subview in view.subviews {
disableGestures(view: subview)
}
}
disableGestures(view: self.webView)
}
func play() { func play() {
self.impl.play() self.impl.play()
} }