Distance
Extends:
A Distance is defined as two inputs moving either together or apart.
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(options: *) Constructor function for the Distance class.  | 
    |
Member Summary
| Public Members | ||
| public | 
      
       The minimum amount in pixels the inputs must move until it is fired.  | 
    |
| public | 
      
       The type of the Gesture.  | 
    |
Method Summary
| Public Methods | ||
| public | 
      
       Event hook for the move of a gesture.  | 
    |
| public | 
       start(inputs: *) start() - Event hook for the start of a gesture.  | 
    |
Inherited Summary
| From class Gesture | ||
| public | 
      
       The unique identifier for each gesture determined at bind time by the state object.  | 
    |
| public | 
      
       The generic string type of gesture ('expand'|'pan'|'pinch'|'rotate'|'swipe'|'tap').  | 
    |
| public | 
      
       end() - Event hook for the move of a gesture  | 
    |
| public | 
      
       Return the id of the event.  | 
    |
| public | 
      
       getType() - Returns the generic type of the gesture  | 
    |
| public | 
      
       move() - Event hook for the move of a gesture  | 
    |
| public | 
      
       Set the id of the gesture to be called during an event  | 
    |
| public | 
      
       Set the type of the gesture to be called during an event  | 
    |
| public | 
      
       start() - Event hook for the start of a gesture  | 
    |
| public | 
       update(object: *) Updates internal properties with new ones, only if the properties exist.  | 
    |
Public Constructors
public constructor(options: *) source
Constructor function for the Distance class.
Override:
Gesture#constructorParams:
| Name | Type | Attribute | Description | 
| options | * | 
Public Members
Public Methods
public move(inputs: Array, state: Object): Object | null source
Event hook for the move of a gesture. Determines if the two points are moved in the expected direction relative to the current distance and the last distance.
Override:
Gesture#moveReturn:
| Object | null | Returns the distance in pixels between the two inputs.  | 
      
public start(inputs: *) source
start() - Event hook for the start of a gesture. Initialized the lastEmitted gesture and stores it in the first input for reference. events.
Override:
Gesture#startParams:
| Name | Type | Attribute | Description | 
| inputs | * |