mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Attempt to work around WKWebView gesture recognizer bug
This commit is contained in:
parent
7e1bf68b71
commit
29b23c767f
@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user