NEW 159668
AX: Double tap to zoom breaks fullscreen web apps (in WKWebView)
https://bugs.webkit.org/show_bug.cgi?id=159668
Summary AX: Double tap to zoom breaks fullscreen web apps (in WKWebView)
Nan Wang
Reported 2016-07-12 00:12:45 PDT
Ignoring user-scalable=no should only affect pinch to zoom on iOS. <rdar://problem/27052950>
Attachments
Initial patch (4.76 KB, patch)
2016-07-12 00:21 PDT, Nan Wang
simon.fraser: review-
simon.fraser: commit-queue-
patch with radar number (4.82 KB, patch)
2016-07-12 11:00 PDT, Nan Wang
simon.fraser: review-
Patch (11.15 KB, patch)
2016-07-12 17:01 PDT, Nan Wang
no flags
Nan Wang
Comment 1 2016-07-12 00:21:53 PDT
Created attachment 283394 [details] Initial patch
Simon Fraser (smfr)
Comment 2 2016-07-12 10:54:22 PDT
Comment on attachment 283394 [details] Initial patch You need the radar number in the commit message and changelog.
Nan Wang
Comment 3 2016-07-12 11:00:29 PDT
Created attachment 283428 [details] patch with radar number Added radar number in changelog
Nan Wang
Comment 4 2016-07-12 11:00:57 PDT
(In reply to comment #2) > Comment on attachment 283394 [details] > Initial patch > > You need the radar number in the commit message and changelog. Uploaded a new patch.
Simon Fraser (smfr)
Comment 5 2016-07-12 11:05:38 PDT
Comment on attachment 283394 [details] Initial patch View in context: https://bugs.webkit.org/attachment.cgi?id=283394&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1733 > + if ([_configuration ignoresViewportScaleLimits]) > + return NO; Doesn't this mean that you've killed double-tap zoom on ALL pages, not just those with user-scalable=no?
Simon Fraser (smfr)
Comment 6 2016-07-12 11:05:59 PDT
Comment on attachment 283428 [details] patch with radar number Doesn't this mean that you've killed double-tap zoom on ALL pages, not just those with user-scalable=no?
Simon Fraser (smfr)
Comment 7 2016-07-12 11:06:37 PDT
Comment on attachment 283428 [details] patch with radar number View in context: https://bugs.webkit.org/attachment.cgi?id=283428&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1733 > + if ([_configuration ignoresViewportScaleLimits]) > + return NO; Why is it OK to check this first, before the other conditions?
Dean Jackson
Comment 8 2016-07-12 11:25:54 PDT
Why is this change necessary? Why is double tap to zoom different from pinch zoom?
Dean Jackson
Comment 9 2016-07-12 11:35:54 PDT
As I commented in radar, the zooming gestures are an all or nothing option. Pinch and double tap zoom are either enabled together, or disabled together. (That's not quite true, since our fast tap heuristics sometimes disable double tap temporarily)
Nan Wang
Comment 10 2016-07-12 11:40:51 PDT
(In reply to comment #8) > Why is this change necessary? Why is double tap to zoom different from pinch > zoom? I think in some web apps, develop will intentionally set userscaleble=no and override double tap gesture on app side. But if we have ignoresViewportScaleLimits enabled the webpage might intercept the gesture.
Nan Wang
Comment 11 2016-07-12 11:41:38 PDT
(In reply to comment #6) > Comment on attachment 283428 [details] > patch with radar number > > Doesn't this mean that you've killed double-tap zoom on ALL pages, not just > those with user-scalable=no? I will work on the user-scalable=no check
Simon Fraser (smfr)
Comment 12 2016-07-12 12:12:41 PDT
Also, if your patch didn't cause any test failures, please add tests to detect the things that you would have broken.
Nan Wang
Comment 13 2016-07-12 17:01:53 PDT
Created attachment 283473 [details] Patch Added another check for user-scalable=no and added test cases.
Simon Fraser (smfr)
Comment 14 2016-07-12 17:53:39 PDT
Still not clear if this is the right approach. Comments in the Radar.
siim
Comment 15 2023-04-16 08:20:32 PDT
Still not fixed in iOS 16.4.1
Note You need to log in before you can comment on or make changes to this bug.