Skip to content

liutian1937/JTouch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JTouch

A javascript library for touch gestures .
Please check the demo on your tablet device .

Support gestures (One Or Two Fingers)

  • start,end
  • tap,doubletap,longtap,hold
  • flick,swipe
  • pinch,rotate

Usage

var objTouch = document.getElementById('touch');//get object
var Touches = JTouch(objTouch);//init JTouch
Touches.on('start',function(){
		  console.log('start');
	  }).on('end',function(){
		  console.log('end');
	  });

Touches.on('flick',function(evt,data){ console.log('flick'); switch(data['direction']){ case 'left' : Trans.next(); break; case 'right': Trans.prev(); break; } });

Demo

You can check it on your tablet device . (ipad,surface..)

http://liutian1937.github.io/JTouch/touch.html

Need translate.js album.js

http://liutian1937.github.io/JTouch/carousel.html

Need translate.js

About

jTouch -- a javascript library for touch gestures .

Resources

Stars

Watchers

Forks

Packages

No packages published