资 源 简 介
Include jquery.event.special.gesture.js after jquery (of course) to enable the capture of mouse gestures. An extra attribute "gesture" is attached to the event object. The event handler must check that value to determine which gesture occured to trigger the event.
The values of "gesture" are determined by the sequence of movements (up,down,left, and right) the user makes once the gesture is started (mouse down). Therefore a gesture with the value "UDLR" means the user started the gesture (mouse down) moved their mouse up then down then left then right before ending the gesture (mouse up).
Also check out the plug-in that wraps the gesture event.