Class: EventsTicker

EventsTicker

This class handles automatic firing of PointerEvents in the case where the pointer is stationary for too long. This is to ensure that hit-tests are still run on moving objects.

new EventsTicker ()

Since:
  • 7.2.0

Members

domElement HTMLElement

The DOM element to listen to events on.

events EventSystem

The event system.

interactionFrequency number

The frequency that fake events will be fired.

Default Value:
  • 10

pauseUpdate boolean

Whether to pause the update checks or not.

Methods

addTickerListener () void

Adds the ticker listener.

init (events) void

Initializes the event ticker.

Name Type Description
events EventSystem

The event system.

pointerMoved () void

Sets flag to not fire extra events when the user has already moved there mouse

removeTickerListener () void

Removes the ticker listener.