References
Class Summary
Static Public Class Summary | ||
public |
A chainable object that contains a single element to be bound upon. |
|
public |
Responsible for creating a binding between an element and a gesture. |
|
public |
A Distance is defined as two inputs moving either together or apart. |
|
public |
An Expand is defined as two inputs moving farther away from each other. |
|
public |
The Gesture class that all gestures inherit from. |
|
public |
Tracks a single input and contains information about the current, previous, and initial events. |
|
public |
A Pan is defined as a normal movement in any direction on a screen. |
|
public |
An Pinch is defined as two inputs moving closer to each other. |
|
public |
Allows the user to specify a region to capture all events to feed ZingTouch into. |
|
public |
A Rotate is defined as two inputs moving about a circle, maintaining a relatively equal radius. |
|
public |
Creates an object related to a Region's state, and contains helper methods to update and clean up different states. |
|
public |
A swipe is defined as input(s) moving in the same direction in an relatively increasing velocity and leaving the screen at some point before it drops below it's escape velocity. |
|
public |
A Tap is defined as a touchstart to touchend event in quick succession. |
|
public |
An event wrapper that normalizes events across browsers and input devices |
Function Summary
Static Public Function Summary | ||
public |
Function that handles event flow, negotiating with the interpreter, and dispatcher. |
|
public |
dispatcher(binding: Binding, data: Object, events: Array) Emits data at the target element if available, and bubbles up from the target to the parent until the document has been reached. |
|
public |
interpreter(bindings: Array, event: Object, state: Object): Object | null Receives an event and an array of Bindings (element -> gesture handler) to determine what event will be emitted. |