@viskit/long-press
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

long-press

long press for ESM & shadow dom.

Inspired by https://github.com/john-doherty/long-press-event Thanks!

Install

npm i @viskit/long-press

DEMO

API

register(root: Document | Element | ShadowRoot = document) : ()=>void;

Note

Don't register multiple times on one root

Use

exclude shadow root

import {register} from "@viskit/long-press";
register();

shadow root

register(customComp.shadowRoot);

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @viskit/long-press

Weekly Downloads

4

Version

0.0.13

License

MIT

Unpacked Size

11.1 kB

Total Files

11

Last publish

Collaborators

  • leogiese