Particles container event listeners manager

Hierarchy

  • EventListeners

Constructors

Properties

canPush: boolean
mouseDownHandler: EventListenerOrEventListenerObject
mouseLeaveHandler: EventListenerOrEventListenerObject
mouseMoveHandler: EventListenerOrEventListenerObject
mouseUpHandler: EventListenerOrEventListenerObject
oldThemeChangeHandler: ((this: MediaQueryList, ev: MediaQueryListEvent) => unknown)

Type declaration

    • (this: MediaQueryList, ev: MediaQueryListEvent): unknown
    • Parameters

      • this: MediaQueryList
      • ev: MediaQueryListEvent

      Returns unknown

resizeHandler: EventListenerOrEventListenerObject
resizeObserver?: ResizeObserver
resizeTimeout?: Timeout
themeChangeHandler: EventListenerOrEventListenerObject
touchCancelHandler: EventListenerOrEventListenerObject
touchEndClickHandler: EventListenerOrEventListenerObject
touchEndHandler: EventListenerOrEventListenerObject
touchMoveHandler: EventListenerOrEventListenerObject
touchStartHandler: EventListenerOrEventListenerObject
visibilityChangeHandler: EventListenerOrEventListenerObject

Methods

  • Adding all listeners

    Returns void

  • Mouse/Touch click/tap event implementation

    Parameters

    • e: Event

      the click event arguments

    Returns void

  • Private

    Handles click mode event

    Parameters

    • mode: string

      Click mode type

    Returns void

  • Private

    Handle browser theme change

    Parameters

    • e: Event

      the media query event

    Returns void

  • Private

    Handles blur event

    Returns void

  • Private

    Handles window resize event

    Returns void

  • Initializing event listeners

    Parameters

    • add: boolean

    Returns void

  • Private

    Handle mouse down event

    Returns void

  • Mouse/Touch click/tap event

    Parameters

    • e: Event

      the click event arguments

    Returns void

  • Mouse/Touch event finish

    Returns void

  • Mouse/Touch move event

    Parameters

    • e: Event

      the event arguments

    Returns void

  • Removing all listeners

    Returns void