Skip to content

AaronLayton/doubletap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

single / double tap (for touch devices)

This super lightweight special event extension will fire a tap or doubleTap event. A doubleTap event is considered one if after the first tap, a successive tap had been fired no later than 250ms. (configurable)

Weight: ~2kb (uncompressed)

How to use:

$(document).on('doubleTap', '.someItem', function(){ console.log('double tap'); })
           .on('tap', '.someItem', function(){ console.log('single tap'); })

About

single / double tap special jQuery event

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published