Action to longpress on an element

Version
  • 1.0.0

Example

<button use:longpress={1000} on:longpress={() => alert("longpress")}>