Parameter | Type | Description |
---|---|---|
args | undefined |
See the dojox/gesture/Base reference documentation for more information.
The complete list of supported gesture events with full name space e.g ['tap', 'tap.hold', 'tap.doubletap']
Default event e.g. 'tap' is a default event of dojox.gesture.tap
A list of sub events e.g ['hold', 'doubletap'], used by being combined with defaultEvent like 'tap.hold', 'tap.doubletap' etc.
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 |
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 |
Process the 'press' phase of a gesture
Parameter | Type | Description |
---|---|---|
data | undefined | |
e | undefined |
Process the 'release' phase of a gesture
Parameter | Type | Description |
---|---|---|
data | undefined | |
e | undefined |