Skip to content

ButtonInteractionState

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/sun/blob/main/js/buttons/ButtonInteractionState.ts for the most up-to-date information.

Overview

Enumeration of the possible button interaction states

@author John Blanco

Class ButtonInteractionState

import { ButtonInteractionState } from 'scenerystack/sun';

Static Properties

IDLE : ButtonInteractionState

(readonly)

button is just sitting there, doing nothing

OVER : ButtonInteractionState

(readonly)

a pointer is over the button, but it is not being pressed

PRESSED : ButtonInteractionState

(readonly)

the button is being pressed by the user

enumeration : Enumeration

(readonly)

Source Code

See the source for ButtonInteractionState.ts in the sun repository.