LongPress

This class recognizes and fires longPress gesture events.

Configs

3
duration: Number= 700

The number of milliseconds that a user must sustain a touch to trigger the longPress event.

native: Boolean= true

Set to false to disable firing longPress based on the native timeout behavior. On many mobile platforms, the native timeout is 500ms and would render the browser's native context menu.

tolerance: Number= 5

The number of pixels of movement allowed before rejecting the gesture as a longpress. In ideal conditions this would be 0, but some users may have difficulty holding perfectly still for the longpress duration.