Skip to content

Commit

Permalink
turn drag cue off upon first successful keyboard drag, phetsims/densi…
Browse files Browse the repository at this point in the history
…ty-buoyancy-common#364

Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Aug 29, 2024
1 parent 10b5c11 commit b114158
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/accessibility/GrabDragInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,13 @@ export class GrabDragCueModel {
// to alternative input.
public numberOfKeyboardGrabs = 0;

// TODO: added for https://github.com/phetsims/density-buoyancy-common/issues/364, but probably won't pass code review.
public shouldShowDragCue = true;

public reset(): void {
this.numberOfGrabs = 0;
this.numberOfKeyboardGrabs = 0;
this.shouldShowDragCue = true;
}
}

Expand Down

0 comments on commit b114158

Please sign in to comment.