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
 
 
 
 
 
 

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 ...

About

Touch Finga-Fingaz

Resources

Packages

No packages published