Skip to content

pouyamer/double-click-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double Click Event Listener for JavaScript

Adds an Event Listener that listens for both click and double click.

How to use

Add double-click.js file to your project and link it on html file.

Instructions

addDoubleClickListener has four Arguments:

element : html element that you want to add evnet listener to.

onClick : a function that executes when user clicks ONCE.

onDoubleClick : a function that executes when user clicks TWICE.

doubleClickDelay_MS : the delay between clicks that when user clicks again on that duration, system takes that as Double Click.

Check out the example.js

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published