Skip to content

vaidik/longpress.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

longpress.js

Provides a desktop and mobile compatible longpress event.

Usage

Check index.html for sample. Working demo is also available.

Defaults

  • duration: 500 ms

Overriding Defaults

Add a longpress_config object in the source before inserting longpress.js like so:

var longpress_config = {
    duration: 600,
};

Example available in index.html.

About

longpress mouse event for desktop and mobile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published