Skip to content
Minimal swipe special event for touch-enabled devices
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
README.md
jqSwipe.jquery.json
jqSwipe.js
test.html

README.md

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>
You can’t perform that action at this time.