New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGRESSION: sreality.cz: pinch zooming on maps causes tab to enter Tab Overview instead of interacting with map #9901
REGRESSION: sreality.cz: pinch zooming on maps causes tab to enter Tab Overview instead of interacting with map #9901
Conversation
EWS run on previous version of this PR (hash 131acda) |
131acda
to
8ec7db9
Compare
EWS run on previous version of this PR (hash 8ec7db9) |
8ec7db9
to
1b8f0cc
Compare
EWS run on previous version of this PR (hash 1b8f0cc) |
1b8f0cc
to
d728e31
Compare
EWS run on previous version of this PR (hash d728e31) |
if (!uiDelegate) | ||
return NO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is unnecessary. If uiDelegate
is nil
, the respondsToSelector
check below will fail.
The method could just return [uiDelegate respondsToSelector:@selector(_webView:gestureRecognizerCanBePreventedByTouchEvents:)] && [uiDelegate _webView:self.webView gestureRecognizerCanBePreventedByTouchEvents:gestureRecognizer]
.
8d7b745
to
c0f02f9
Compare
EWS run on previous version of this PR (hash c0f02f9) |
EWS run on previous version of this PR (hash 8d7b745) |
c0f02f9
to
85bb734
Compare
EWS run on current version of this PR (hash 85bb734) |
β¦b Overview instead of interacting with map https://bugs.webkit.org/show_bug.cgi?id=252023 rdar://104329203 Reviewed by Wenson Hsieh. WebKit@b7a998f introduced a new deferring gesture recognizer for pan and pinch gestures. This had the conseequence of now letting Safari take precedence over consuming these gestures rather than WebKit, causing the tab overview to appear instead of zooming out of the map. This PR adds a new private delegate method to `WKUIDelegate` that allows clients to specify if a recognizer can be prevented by touch events. Then, if the gesture is also one that is installed over the web view, the web view will take precedence. * Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView _gestureRecognizerCanBePreventedByTouchEvents:]): (-[WKContentView deferringGestureRecognizer:shouldDeferOtherGestureRecognizer:]): Canonical link: https://commits.webkit.org/260294@main
85bb734
to
887ab6d
Compare
Committed 260294@main (887ab6d): https://commits.webkit.org/260294@main Reviewed commits have been landed. Closing PR #9901 and removing active labels. |
887ab6d
85bb734