Options
All
  • Public
  • Public/Protected
  • All
Menu

Wheel Events

Represents a mouse wheel event. See Pointers for more information on handling point input.

Hierarchy

Index

Constructors

constructor

  • new WheelEvent(x: number, y: number, pageX: number, pageY: number, screenX: number, screenY: number, index: number, deltaX: number, deltaY: number, deltaZ: number, deltaMode: WheelDeltaMode, ev: any): WheelEvent
  • Parameters

    • x: number

      The x coordinate of the event (in world coordinates)

    • y: number

      The y coordinate of the event (in world coordinates)

    • pageX: number

      The x coordinate of the event (in document coordinates)

    • pageY: number

      The y coordinate of the event (in document coordinates)

    • screenX: number

      The x coordinate of the event (in screen coordinates)

    • screenY: number

      The y coordinate of the event (in screen coordinates)

    • index: number

      The index of the pointer (zero-based)

    • deltaX: number

      The type of pointer

    • deltaY: number

      The type of pointer

    • deltaZ: number

      The type of pointer

    • deltaMode: WheelDeltaMode

      The type of movement WheelDeltaMode

    • ev: any

      The raw DOM event being handled

    Returns WheelEvent

Properties

Protected _name

_name: string = ""

Protected _path

_path: Actor[] = []

Holds the whole path from the Root to the event target

bubbles

bubbles: boolean = true

determines, if event bubbles to the target's ancestors

deltaMode

deltaMode: WheelDeltaMode

The type of movement WheelDeltaMode

deltaX

deltaX: number

The type of pointer

deltaY

deltaY: number

The type of pointer

deltaZ

deltaZ: number

The type of pointer

ev

ev: any

The raw DOM event being handled

index

index: number

The index of the pointer (zero-based)

pageX

pageX: number

The x coordinate of the event (in document coordinates)

pageY

pageY: number

The y coordinate of the event (in document coordinates)

screenX

screenX: number

The x coordinate of the event (in screen coordinates)

screenY

screenY: number

The y coordinate of the event (in screen coordinates)

target

target: Actor

Target object for this event.

x

x: number

The x coordinate of the event (in world coordinates)

y

y: number

The y coordinate of the event (in world coordinates)

Accessors

eventPath

  • get eventPath(): Actor[]

name

  • get name(): string

Methods

Protected _onActionEnd

  • _onActionEnd(_actor?: Actor): void

Protected _onActionStart

  • _onActionStart(_actor?: Actor): void

action

  • action(): void

layPath

  • layPath(actor: Actor): void

propagate

  • propagate(): void

stopPropagation

  • stopPropagation(): void