Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pouyamer/double-click-handler

Open more actions menu

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.