Skip to content

longpress

Creates `longpress` event when mousedown above `duration` milliseconds.

Usage

<button use:longpress={duration} on:longpress={() => alert("longpress")}>
press and hold
</button>

Installation

Terminal window
npx atmx add action longpress