Skip to content

Commit 95fc446

Browse files
authored
Create README.md
1 parent 5f7a50c commit 95fc446

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Double Click Event Listener for JavaScript
2+
Adds an Event Listener that listens for both ```click``` and ```double click```.
3+
4+
## How to use
5+
Add `double-click.js` file to your project and link it on html file.
6+
7+
## Instructions
8+
### ```addDoubleClickListener``` has four Arguments:
9+
10+
```element``` : html element that you want to add evnet listener to.
11+
12+
```onClick``` : a function that executes when user clicks ONCE.
13+
14+
```onDoubleClick``` : a function that executes when user clicks TWICE.
15+
16+
```doubleClickDelay_MS``` : the delay between clicks that when user clicks again on that duration, system takes that as Double Click.
17+
18+
Check out the `example.js`

0 commit comments

Comments
 (0)