Provide an option for an always-on fast click mode in iOS
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Mar 2019 22:06:42 +0000 (22:06 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Mar 2019 22:06:42 +0000 (22:06 +0000)
commit202b4df0c6286ebb4c7083e65069a231d2b46bef
tree6d0389ce455c8465786740ff0f32c4bf29eabe70
parentcaf963df94fefd49ba4314d0ebe2aec909a14b66
Provide an option for an always-on fast click mode in iOS
https://bugs.webkit.org/show_bug.cgi?id=195822
<rdar://problem/48939357>

Reviewed by Sam Weinig.

Source/WebKit:

Add an option that will always trigger a click and never
wait for a double tap to zoom. It is disabled by default.

* Shared/WebPreferences.yaml:
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _handleSmartMagnificationInformationForPotentialTap:renderRect:fitEntireRect:viewportMinimumScale:viewportMaximumScale:]):

LayoutTests:

New test for "always fast click" mode.

* fast/events/ios/ipad/fast-click-always-expected.txt: Added.
* fast/events/ios/ipad/fast-click-always.html: Copied from LayoutTests/fast/events/ios/ipad/fast-click-double-tap-sends-click-on-insignificant-zoom.html.
* fast/events/ios/ipad/fast-click-double-tap-sends-click-on-insignificant-zoom.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/ios/ipad/fast-click-always-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/ios/ipad/fast-click-always.html [new file with mode: 0644]
LayoutTests/fast/events/ios/ipad/fast-click-double-tap-sends-click-on-insignificant-zoom.html
Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm