ITouchValue

interface
Touch & Gesture

The binding value accepted by the v-touch directive — extends ITouchHandlers with optional parent-element delegation and addEventListener options.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

parent
boolean
When true, event listeners are attached to the element's parent instead of the element itself.
options
AddEventListenerOptions
Options forwarded verbatim to addEventListener (capture, passive, once).

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Full v-touch binding with passive listener

html