Module: TouchEventHandlers

This module exports a function registerTouchEventHandlers that sets up all touch events. It interacts directly with the fractalRenderer instance.
Author:
  • Radim Brnka
License:
  • MIT
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) LONG_PRESS_THRESHOLD

Long press zoom configuration
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:

(inner) markOrbitDirtySafe()

Mark orbit dirty if the current renderer supports perturbation caching. IMPORTANT: must NOT trigger orbit rebuild immediately (renderers should defer).
Source:

(inner) startLongPressZoomIn()

Start the continuous long press zoom-in loop for touch. Zooms in toward the anchor point while allowing panning.
Source:

(inner) stopLongPressZoomIn()

Stop the long press zoom-in loop for touch.
Source: