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