Module: TouchEventHandlers

This module exports a function registerTouchEventHandlers that sets up all touch events. It interacts directly with the fractalRenderer instance.
Author:
  • Radim Brnka
Source:

Members

(inner, constant) DOUBLE_TAP_THRESHOLD

How long should we wait before distinguish between double tap and two single taps.
Source:

(inner, constant) DRAG_THRESHOLD

Tolerance of finger movements before drag starts with move gesture.
Source:

(inner, constant) ROTATION_THRESHOLD

Tolerance of finger movements before rotation starts with pinch gesture.
Source:

(inner) touchHandlersRegistered

Global variable to track registration
Source:

Methods

(static) initTouchHandlers(app)

Initialization and registering of the event handlers.
Parameters:
Name Type Description
app FractalRenderer
Source:

(static) registerTouchEventHandlers()

Registers touch handlers.
Source:

(static) unregisterTouchEventHandlers()

Unregisters touch handlers.
Source: