ActiveListCooldown

TYPE DEFINITION

A Cooldown is a time period in which all user made activations and deactivations are prevented / ignored. Activations and deactivations where the isUserInteraction is set to false always bypass the cooldown.

The use-case is a cooldown can guarantees that animations are completed, before another is triggered.

Contains whether or not the cooldown is active via isActive and the current duration via duration.

Since 1.0.0

Properties

  • duration

    number

    The amount of milliseconds the ActiveList should remain in the cooldown state.

    Since 1.0.0

  • isActive

    boolean

    Whether or not the ActiveList is currently in the cooldown state. When in cooldown all activations and deactivations are ignored.

    Since 1.0.0