Class: DoubleGesture

player/TouchGestures~DoubleGesture(touches)

Handles double touch gestures.

Double touch gestures control screen interactions like zoom, rotate and panning (translate). To interpret changes the handler uses line objects which virtuallyvirtually connect two touchpoints.

Constructor

new DoubleGesture(touches)

Creates a new double touch gesture handler.

Parameters:
Name Type Description
touches Array.<object>

The initial touchpoint objects when the gesture is first detected

Source:

Extends

  • Gesture

Methods

move(touches)

Processes touchpoint moves.

Checks whether each of translate, zoom or rotate are allowed by presentation's mouse enabled policy and delegates the interaction to helper classes.

Parameters:
Name Type Description
touches Array.<object>

Array of touchpoints.

Source:

rejects(touches)

Rejects any number of touchpoints but two.

Parameters:
Name Type Description
touches Array.<object>

Array of touchpoints.

Source:

rotate(actLine)

Checks roatation threshhold and performs the actual rotation.

Parameters:
Name Type Description
actLine module:player/TouchGestures.Line

The currently processed line.

Source:

translate(actLine)

Performs the actual translation/pan.

Parameters:
Name Type Description
actLine module:player/TouchGestures.Line

The currently processed line.

Source:

zoom(actLine)

Checks zoom threshhold and performs the actual zoom.

Parameters:
Name Type Description
actLine module:player/TouchGestures.Line

The currently processed line.

Source: