[Pointer Events] Scroll indicators should not show for scrollable content with touch-action: none
Created attachment 373714 [details] Patch
@smfr: is there a better way to determine a given UIGestureRecognizer is the pan gesture recognizer of a UIScrollView created by WebKit but isn't the WKWebView's UIScrollView's? Looking at its delegate's class works fine, but maybe there's a clearer way?
Comment on attachment 373714 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=373714&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:1402 > + if ([view isKindOfClass:[UIScrollView class]]) { > + if (auto* delegate = ((UIScrollView*)view).delegate) > + return [delegate isKindOfClass:[WKScrollingNodeScrollViewDelegate class]]; > + } You could just check that the UIScrollView is a WKChildScrollView?
Committed r247265: <https://trac.webkit.org/changeset/247265>
<rdar://problem/52844700>