Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

jqSwipe

Deprecated - please use: https://github.com/yairEO/touchy

Adds minimal swipe special event for touch-enabled devices. by minimal, I mean it just knows which direction the finger went across the screen, without caring about the velocity, acceleration or basicly anything else than the direction.

Weight: ~1.6kb (with comments, uncompressed)

Test page (QR URL):

QR URL

How to use:

<script>
   $('div').on('swipe', function(e, Dx, Dy){
       // Dx == 1 means right
       // Dx == -1 means left
       // Dy == 1 means top
       // Dy == -1 means bottom
   });
</script>

About

Minimal swipe special event for touch-enabled devices

Resources

Packages

No packages published