Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

angle

angle: number

Angle moved.

center

center: HammerPoint

Center position for multi-touch, or just the single pointer.

changedPointers

changedPointers: any[]

Array with all new/moved/lost pointers.

deltaTime

deltaTime: number

Total time in ms since the first input.

deltaX

deltaX: number

Movement of the X axis.

deltaY

deltaY: number

Movement of the Y axis.

direction

direction: number

Direction moved. Matches the DIRECTION constants.

distance

distance: number

Distance moved.

eventType

eventType: 2 | 1 | 4 | 8

Event type, matches the INPUT constants.

isFinal

isFinal: boolean

true when the final (last) input.

isFirst

isFirst: boolean

true when the first input.

maxPointers

maxPointers: number

Maximum number of pointers detected in the gesture

offsetDirection

offsetDirection: number

Direction moved from it's starting point. Matches the DIRECTION constants.

overallVelocity

overallVelocity: number

overallVelocityX

overallVelocityX: number

overallVelocityY

overallVelocityY: number

pointerType

pointerType: string

Primary pointer type, could be touch, mouse, pen or kinect.

pointers

pointers: any[]

Array with all pointers, including the ended pointers (touchend, mouseup).

preventDefault

preventDefault: Function

Reference to the srcEvent.preventDefault() method. Only for experts!

rotation

rotation: number

Rotation that has been done when multi-touch. 0 on a single touch.

scale

scale: number

Scaling that has been done when multi-touch. 1 on a single touch.

srcEvent

srcEvent: MouseEvent | PointerEvent | TouchEvent

Source event object, type TouchEvent, MouseEvent or PointerEvent.

target

target: HTMLElement

Target that received the event.

timeStamp

timeStamp: number

Timestamp of a gesture

type

type: string

Name of the event. Like panstart.

velocity

velocity: number

Highest velocityX/Y value.

velocityX

velocityX: number

Velocity on the X axis, in px/ms.

velocityY

velocityY: number

Velocity on the Y axis, in px/ms

Methods

destroy

  • destroy(): void

handler

  • handler(): void

init

  • init(): void

Generated using TypeDoc