0.0.13 • Published 5 years ago

@viskit/long-press v0.0.13

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

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.12

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago