0.0.13 • Published 4 years ago

@viskit/long-press v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

0.0.13

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago