Website address: http://jgestures.codeplex.com/
Document Version number: v0.7, edited by Neuedigitale, May 8, 2012
Latest stable version: Jgestures v0.90-shake
Jgestures Introduction
The Jgestures plugin allows you to listen to the following events as native jquery events: ' Pinch ' (zoom gesture), ' rotate ' (rotation gesture), ' swipe ' (swipe gesture), ' tap ' (touch) and ' Orientationchange ' ( Change device orientation). Of course, some events can be implemented on a PC browser via a transform. For example, "Tapone" event can be triggered by "clicking" event, mouse gestures can also produce "swipe" event.
Using the example
[JavaScript]View Plaincopy
- $ (' #swipe '). Bind (' Swipeone ', eventHandler);
Event List
Orientationchange
Represents a device that rotates clockwise or counterclockwise. This event can be triggered by the device and may be using a gravity sensor.
Pinch
Zoom gesture (two finger relative motion on the screen)
Rotate
Rotating gestures (two fingers clockwise or counterclockwise)
Swipemove
Trigger on slide (move finger on device screen, e.g. drag)
Swipeone
Single-point swipe gesture that triggers when the slide is complete (one finger moves on the screen)
Swipetwo
Two-point swipe (two fingers sliding in a consistent direction on the screen)
Swipethree
Three-point swipe (three fingers sliding in a consistent direction on the screen)
Swipefour
Four-point swipe (four fingers sliding in a consistent direction on the screen)
Swipeup
Swipe up to trigger after a rigorous upward swipe gesture is complete
Swiperightup
Swipe to the top right to trigger when the swipe gesture is completed right and up
swiperight
Swipe right to trigger after strict right swipe gesture is complete
Swiperightdown
Swipe down to the right and trigger when the swipe gesture is completed right and down
Swipedown
Swipe down to trigger when the strict swipe down gesture is complete
Swipeleftdown
Swipe down to the left and trigger after the left and down swipe gesture is complete
Swipeleft
Swipe left to trigger after strict left swipe gesture is complete
Swipeleftup
Swipe to the top left and trigger after the left and up swipe gesture is complete
Tapone
Triggers after a single finger taps the gesture
Taptwo
Trigger after two fingers with a tap gesture
Tapthree
Trigger after three fingers with a tap gesture
Pinchopen
An open gesture that fires when two fingers are large and leave the device.
Pinchclose
Pinch gestures, triggered when two fingers are pinched and left the device.
ROTATECW
Two fingers are rotated clockwise and off the screen (two fingers rotating clockwise)
ROTATECCW
Two fingers turn counterclockwise and trigger when leaving the screen (two fingers rotating counterclockwise)
Shake
Triggered when the device is being shaken
Shakefrontback
When a shaking action is detected and can be interpreted as a trigger when moving forward or backward.
Shakeleftright
When a shaking action is detected and can be interpreted as a trigger when moving left and right.
Shakeupdown
When a shaking action is detected and can be interpreted as triggering when moving up and down.
Jgestures:jquery's Gesture Event plugin