Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MomentumGestureInput

Hierarchy

Index

Constructors

constructor

Properties

altKey

altKey: boolean

ax

ax: number

ay

ay: number

button

button: number

buttons

buttons: number

coasting

coasting: boolean

ctrlKey

ctrlKey: boolean

defaultPrevented

defaultPrevented: boolean

detail

detail: unknown

dt

dt: number

dx

dx: number

dy

dy: number

height

height: number

holdDelay

holdDelay: number

holdTimer

holdTimer: number

hovering

hovering: boolean

Readonly inputId

inputId: string

inputType

inputType: GestureInputType

isPrimary

isPrimary: boolean

metaKey

metaKey: boolean

Readonly path

path: { t: number; x: number; y: number }[]

pressing

pressing: boolean

pressure

pressure: number

shiftKey

shiftKey: boolean

t

t: number

t0

t0: number

tangentialPressure

tangentialPressure: number

target

target: null | EventTarget

tiltX

tiltX: number

tiltY

tiltY: number

twist

twist: number

vx

vx: number

vy

vy: number

width

width: number

x

x: number

x0

x0: number

y

y: number

y0

y0: number

Methods

clearHoldTimer

  • clearHoldTimer(): void

deriveVelocity

  • deriveVelocity(vMax: number): void
  • Parameters

    • vMax: number

    Returns void

integrateVelocity

  • integrateVelocity(t: number): void
  • Parameters

    • t: number

    Returns void

isRunaway

  • isRunaway(): boolean
  • Returns boolean

preventDefault

  • preventDefault(): void

setHoldTimer

  • setHoldTimer(f: () => void): void
  • Parameters

    • f: () => void
        • (): void
        • Returns void

    Returns void

updatePosition

  • updatePosition(hysteresis: number): void
  • Parameters

    • hysteresis: number

    Returns void

Generated using TypeDoc