Class: DragControlMethod

DragControlMethod(element, pointerType, opts)

Control the view by clicking/tapping and dragging.

Constructor

new DragControlMethod(element, pointerType, opts)

Parameters:
Name Type Description
element Element

Element to listen for events.

pointerType string

Which Hammer.js pointer type to use (e.g. mouse or touch).

opts Object
Properties
Name Type Description
friction number
maxFrictionTime number
Implements:

Methods

destroy()

Destroy the instance