Class GestureListener
GestureListener
Defined in: <mobile_common.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
GestureListener.addSwipe(oDomElement, fnCallback)
You can identify a swipe gesture as follows:
1.
|
Method Detail
<static>
GestureListener.addSwipe(oDomElement, fnCallback)
You can identify a swipe gesture as follows:
1. Begin gesture if you receive a touchstart event containing one target touch.
2. Abort gesture if, at any time, you receive an event with >1 touches.
3. Continue gesture if you receive a touchmove event mostly in the x-direction.
4. Abort gesture if you receive a touchmove event mostly the y-direction.
5. End gesture if you receive a touchend event.
based on Dave Dunkins script
- Parameters:
- oDomElement
- fnCallback