Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 504edb5c563f9ad8d0436f60b5a608f0ec384f42
https://github.com/WebKit/WebKit/commit/504edb5c563f9ad8d0436f60b5a608f0ec384f42
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-07-17 (Fri, 17 Jul 2026)
Changed paths:
M
LayoutTests/pointerevents/ios/touch-action-manipulation-double-tap-to-zoom-expected.txt
M
LayoutTests/pointerevents/ios/touch-action-manipulation-double-tap-to-zoom.html
M Source/WebKit/UIProcess/ios/WKTouchActionGestureRecognizer.mm
Log Message:
-----------
[iOS] "touch-action: manipulation" does not prevent double-tap-to-zoom
https://bugs.webkit.org/show_bug.cgi?id=319664
rdar://182499287
Reviewed by Antoine Quint.
Per the pointer events spec, "touch-action: manipulation" enables panning
and continuous zoom gestures but disables additional gestures such as
double-tap-to-zoom (DTTZ). On iOS, WKTouchActionGestureRecognizer only
prevented DTTZ when "touch-action: none" was specified, though. This
seems to be behavior explicitly added in 213469@main (with a test in
pointerevents/ios/touch-action-manipulation-double-tap-to-zoom.html).
In this patch, we prevent DTTZ recognizers when the touched element has
a touch-action: manipulation value.
There may be some web compatibility ramifications, but I'm weighing that
against the spec (and, prior WebKit blogs!).
*
LayoutTests/pointerevents/ios/touch-action-manipulation-double-tap-to-zoom-expected.txt:
*
LayoutTests/pointerevents/ios/touch-action-manipulation-double-tap-to-zoom.html:
* Source/WebKit/UIProcess/ios/WKTouchActionGestureRecognizer.mm:
(-[WKTouchActionGestureRecognizer canPreventGestureRecognizer:]):
Canonical link: https://commits.webkit.org/317443@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications