Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 505 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 505 Bytes

touchEvent for iOS events

###Methods:

  • onSwipeLeft : function()
  • onSwipeRight : function()
  • onSwipeUp : function()
  • onSwipeDown : function()
  • onGestureEnd : function()
  • onPinchOpen : function(scale)
  • onPinchClose : function(scale)
  • onRotated : function(rotation)
  • onGesture : function(e)

###Usage: <script type="text/javascript" src="../src/touchEvent.js"></script>

var event = new touchEvent("body");
event.onGesture(function(e){
	//do something;
});