Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WheelHandler

Used to handle scrolling trackpad and mouse wheel events.

Hierarchy

  • WheelHandler

Index

Constructors

  • new WheelHandler(onWheel: any, handleScrollX: any, handleScrollY: any, stopPropagation: any): WheelHandler
  • Parameters

    • onWheel: any
    • handleScrollX: any
    • handleScrollY: any
    • stopPropagation: any

    Returns WheelHandler

Properties

animationFrameID: any = null
deltaX: number = 0
deltaY: number = 0
handleScrollX: any = null
handleScrollY: any = null
onWheelCallback: any = null
stopPropagation: any = null

Methods

  • didWheel(): void
  • Fires a callback if the wheel event has changed.

    Returns void

  • onWheel(event: any): void
  • Binds the wheel handler.

    Parameters

    • event: any

      The wheel event.

    Returns void

Generated using TypeDoc