Skip to main content

enable

enable( event:Event ) : Self

Enables the Observer, adding the necessary event listeners and firing the onEnable callback if the Observer wasn't already enabled.

Parameters

  • event: Event

    Optionally pass in a pointer/mouse/touch event if you'd like it to immediately be passed to the onPress (like if you're enabling the Observer inside a pointerdown/touchstart/mousedown handler).

Details

Enables the Observer, adding the necessary event listeners and firing the onEnable callback if the Observer wasn't already enabled.

Contents