Class: DummyGesture

player/TouchGestures~DummyGesture(touchNum)

A dummy gesture handler used when a gesture is restricted by mouse configuration.

The dummy pretends to handle a given number of touchpoints, but does nothing in effect.

Constructor

new DummyGesture(touchNum)

Constructs the dummy gesture handler.

Parameters:
Name Type Description
touchNum number

The number of touches this dummy should pretend to handle.

Source:

Extends

  • Gesture

Methods

rejects(touches)

Rejects touch events that do not exaclty match the initial number of touches to be handled.

Parameters:
Name Type Description
touches Array.<object>

Array of touch objects from the touch event

Source: