0.0.13 • Published 3 years ago

@viskit/long-press v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago