diff --git a/index.html b/index.html index fd9b863..72de715 100644 --- a/index.html +++ b/index.html @@ -949,7 +949,7 @@
touch-action
auto
| none
| [ [ pan-x
| pan-left
| pan-right
] || [ pan-y
| pan-up
| pan-down
] ] | manipulation
auto
| none
| [ [ pan-x
| pan-left
| pan-right
| pan-inline
| pan-inline-start
| pan-inline-end
] || [ pan-y
| pan-up
| pan-down
| pan-block
| pan-block-start
| pan-block-end
] ] | manipulation
auto
touch-action
valu
The touch-action
property covers direct manipulation behaviors related to viewport panning and zooming. Any additional user agent behaviors, such as text selection/highlighting, or activating links and form controls, MUST NOT be affected by this CSS property.
auto
or none
values, are out of scope for this specification.auto
none
pan-y
), the axis cannot be changed during panning.pan-x
, pan-left
, pan-right
pan-inline
, pan-inline-start
, pan-inline-end
pan-y
, pan-up
, pan-down
pan-block
, pan-block-start
, pan-block-end
pan-*
value used. Once panning has started, the direction can be reversed by the user even if panning that starts in the reversed direction is disallowed. In contrast, when panning is restricted to a single axis (using pan-x
, pan-y
, pan-block
, or pan-inline
), the axis cannot be changed during panning.manipulation
touch-action
values common in implementations are defined in [[COMPAT]].touch-action
property only applies to elements that support both the CSS width
and height
properties (see [[CSS21]]). This restriction is designed to facilitate user agent optimizations for low-latency direct manipulation panning and zooming. For elements not supported by default, such as <span>
which is a non-replaced inline element, authors can set the display
CSS property to a value, such as block
, that supports width
and height
. Future specifications could extend this API to all elements.The touch-action
property only applies to elements that support both the CSS width
and height
properties (see [[CSS21]]). This restriction is designed to facilitate user agent optimizations for low-latency direct manipulation panning and zooming. For elements not supported by default, such as <span>
which is a non-replaced inline element, authors can set the display
CSS property to a value, such as block
, that supports width
and height
. Future specifications could extend this API to all elements.
touch-action
supports both physical and logical values, as defined in [[!CSS-WRITING-MODES-3]]. pan-x
and pan-y
refer to the horizontal and vertical axes. pan-left
, pan-right
, pan-up
, and pan-down
are [=physical=] direction values. In contrast, pan-inline
refers to the abstract [=inline axis=], and pan-block
to the [=block axis=]. The remaining logical values (pan-inline-start
, pan-inline-end
, pan-block-start
, pan-block-end
) are [=flow-relative=] – their physical meaning depends on the element's [=writing mode=].
The direction-specific pan values are useful for customizing some overscroll behaviors.
For example, to implement a simple pull-to-refresh effect the document's touch-action
can be set to pan-x pan-down
whenever the scroll position is 0
and pan-x pan-y
otherwise.