# gestures **Repository Path**: mirrors_sveltejs/gestures ## Basic Information - **Project Name**: gestures - **Description**: Svelte actions for cross-platform gesture detection - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @sveltejs/gestures A (work-in-progress) collection of gesture recognisers for Svelte components. Each recogniser is implemented as an action that emits custom events. Pointer events are used where possible, falling back to mouse and touch events. ## tap ([demo](https://v3.svelte.technology/repl?version=3.0.0-beta.10&gist=ffbdb659f2c52c8510bec42af3ffb0d1)) This action fires a `tap` event when the user taps on an element with either a mouse or a finger (or other pointing device). If the pointer is down for more than 300ms, it doesn't count, unlike with `click` events. Pressing the spacebar on a focused button will also fire a `tap` event. Taps on disabled form elements are disregarded. The `event.detail` object has `x` and `y` properties corresponding to `clientX` and `clientY`. If the original event was a spacebar keypress, both are `null`. ```html ``` TODO: `pan`, `swipe`, `rotate`, `pinch`, `press` ## License [LIL](LICENSE)