@viskit/long-press
v0.0.13
Published
long press
Downloads
6
Readme
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