TouchArea.enabled: Document cancellation behaviour

This commit is contained in:
Simon Hausmann 2024-12-05 19:58:53 +01:00 committed by Simon Hausmann
parent 30ed9da728
commit 1c6529d637

View file

@ -45,6 +45,12 @@ When not part of a layout, its width or height default to 100% of the parent ele
<SlintProperty propName="enabled" typeName="bool" defaultValue="true">
When disabled, the `TouchArea` doesn't recognize any touch or mouse events and they are
passed through to elements underneath.
:::note{Note}
When `enabled` is set to false while the `TouchArea` is pressed, `pointer-event` will be
invoked with `PointerEventKind.Cancel`, and the `pressed` and `has-hover` properties will
be reset to `false`.
:::
</SlintProperty>
### has-hover