Parameter | Type | Description |
---|---|---|
args | undefined |
See the dojox/gesture/tap.Tap reference documentation for more information.
The complete list of supported gesture events with full name space e.g ['tap', 'tap.hold', 'tap.doubletap']
List of sub events, used by being combined with defaultEvent as 'tap.hold', 'tap.doubletap'.
Bind dojo/on handlers for both gesture event(e.g 'tab.hold') and underneath 'press'|'move'|'release' events
Parameter | Type | Description |
---|---|---|
node | Dom | |
type | String | |
listener | function |
Obtain a gesture element for the give node
Parameter | Type | Description |
---|---|---|
node | Dom |
Bind listen handler for the given gesture event(e.g. 'tap', 'tap.hold' etc.) the returned handle will be used internally by dojo/on
Parameter | Type | Description |
---|---|---|
eventType | String |
Update the gesture data with new tap info
Parameter | Type | Description |
---|---|---|
data | Object | |
e | Event |
Check whether it's an valid tap
Parameter | Type | Description |
---|---|---|
data | Object | |
e | Event |
Process and dispatch to appropriate phase handlers. Also provides the machinery for managing gesture bubbling.
e._locking is used to make sure only the most inner node will be processed for the same gesture, suppose we have:
on(inner, dojox.gesture.tap, func1); on(outer, dojox.gesture.tap, func2); only the inner node will be processed by tap gesture, once matched,
the 'tap' event will be bubbled up from inner to outer, dojo.StopEvent(e) can be used at any level to stop the 'tap' event.
Parameter | Type | Description |
---|---|---|
element | Object | Gesture element |
phase | String | Phase of a gesture to be processed, might be 'press'|'move'|'release'|'cancel' |
e | Event | Native event |
Check and remove underneath handlers if node is not being listened for 'this' gesture anymore, this happens when user removed all previous on() handlers.
Parameter | Type | Description |
---|---|---|
node | Dom | |
type | String |
Process the 'cancel' phase of a gesture
Parameter | Type | Description |
---|---|---|
data | undefined | |
e | undefined |
Fire a gesture event and invoke registered listeners a simulated GestureEvent will also be sent along
Parameter | Type | Description |
---|---|---|
node | DomNode | Target node to fire the gesture |
event | Object | An object containing specific gesture info e.g {type: 'tap.hold'|'swipe.left'), ...} all these properties will be put into a simulated GestureEvent when fired. Note - Default properties in a native Event won't be overwritten, see on.emit() for more details. |
Check if the node is locked, isLocked(node) means whether it's a descendant of the currently locked node.
Parameter | Type | Description |
---|---|---|
node | undefined |
Process the 'move' phase of a gesture
Parameter | Type | Description |
---|---|---|
data | undefined | |
e | undefined |
Overwritten, record initial tap info and register a timeout checker for 'tap.hold'
Parameter | Type | Description |
---|---|---|
data | Object | |
e | Event |
Overwritten, fire matched 'tap' or 'tap.doubletap' during touchend
Parameter | Type | Description |
---|---|---|
data | Object | |
e | Event |