Skip to content
Touch Finga-Fingaz
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.
.project
README.md
bower.json
fingaFingaz.js
fingaFingaz.min.js

README.md

fingaFingaz

Touch Finga-Fingaz adds some event listeners and custom events and whatnot to browsers that support touch. minified is ~8kb. Props to the incomparable sprky0 for his contributions.

Usage

  • add the js

  • init like so : var _FF = fingaFingaz.init();

  • or - for AMD, we're defined as 'fingaFingaz'

  • enjoy the new events :

    • swipeup
    • swiperight
    • swipedown
    • swipeleft
  • also :

    • touchstart
    • touchmove
    • touchend
    • gesturestart
    • gestureend
  • all above events are auto registered with jQuery so you can do like :

     $("#thing").on("swipeleft", function(){ 
     	console.log('swiped left'); 
     });
  • note: for ie9 & 10 you'll have to add the css property of -ms-touch-action to things.

    • none || auto || pan-x || pan-y ...
You can’t perform that action at this time.