Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScrollTrackerEvent

Events to thrown by ScrollTracker and ScrollTrackerPoint instances

Hierarchy

  • AbstractEvent
    • ScrollTrackerEvent

Implements

  • IEvent

Index

Constructors

constructor

Properties

bubbles

bubbles: boolean

cancelable

cancelable: boolean

currentTarget

currentTarget: IEventDispatcher

Will be updated by [[EventDispatcher]] during the dispatch of an event to the target that listeners are currently being called on. After completion of an event dispatch this value will be reset to null.

defaultPrevented

defaultPrevented: boolean

true if cancelable is true and preventDefault has been called on this event.

eventPhase

eventPhase: EventPhase

The current event phase of this event. During event dispatch, this value will be either [[EventPhase.CAPTURING_PHASE|CAPTURING_PHASE]], [[EventPhase.AT_TARGET|AT_TARGET]] or [[EventPhase.BUBBLING_PHASE|BUBBLING_PHASE]]. If this event is not currently being dispatched this will be set to [[EventPhase.NONE|NONE]].

point

side

side: Side

target

target: IEventDispatcher

Will be updated by [[EventDispatcher]] when [[EventDispatcher.dispatchEvent|dispatchEvent]] is called with this event. The value will be set to the EventDispatcher instance that dispatched the event.

timeStamp

timeStamp: number

Indicates the time this event is dispatched in the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC. This value will only be set if the setTimestamp parameter in the constructor is set to true. Otherwise, this value will be 0.

type

type: string

Static BOUNDS_CHANGED

BOUNDS_CHANGED: string = EVENT_TYPE_PLACEHOLDER

Static ENTER_VIEW

ENTER_VIEW: string = EVENT_TYPE_PLACEHOLDER

Static LEAVE_VIEW

LEAVE_VIEW: string = EVENT_TYPE_PLACEHOLDER

Static SCROLLED_BEYOND

SCROLLED_BEYOND: string = EVENT_TYPE_PLACEHOLDER

Methods

callListener

  • callListener(handler: EventHandler): CallListenerResult
  • Calls the given event handler, and returns an enum value that indicates if stopPropagation or stopImmediatePropagation have been called on this event during the execution of that handler.

    Parameters

    • handler: EventHandler

      The event handler to execute

    Returns CallListenerResult

    An enum value, see [[CallListenerResult]]

clone

preventDefault

  • preventDefault(): void
  • May only be called when the cancelable property of an event is set to true. Indicates to the instance that dispatched the event that the default action for the event should not be executed.

    Returns void

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • When called during the dispatch of an event, will prevent any other event listener from being called for this event.

    see

    [[EventDispatcher.dispatchEvent]]

    Returns void

stopPropagation

  • stopPropagation(): void
  • When called during the dispatch of an event, will prevent any targets further in the event chain from being processed. All listeners on the current target will still be executed.

    see

    [[EventDispatcher.dispatchEvent]]

    Returns void

Generated using TypeDoc