/longpress.js

Primary LanguageJavaScriptMIT LicenseMIT

longpress.js

An easy way to handle long press!

Installation

Use the package manager npm to install.

npm i @rachidoudouch/longpress

Usage

import longPress from '@rachidoudouch/longpress';

longPress(/* element */, /* time */, /* function to run */);