MCPcopy Create free account
hub / github.com/esengine/esengine / handleRollOut

Method handleRollOut

packages/fairygui/src/widgets/GButton.ts:581–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

579 }
580
581 private handleRollOut(): void {
582 if (
583 !this._buttonController ||
584 !this._buttonController.hasPage(GButton.OVER)
585 ) {
586 return;
587 }
588
589 this._over = false;
590 if (this._down) {
591 return;
592 }
593
594 if (this.grayed && this._buttonController.hasPage(GButton.DISABLED)) {
595 return;
596 }
597
598 this.setState(this._selected ? GButton.DOWN : GButton.UP);
599 }
600
601 private handleTouchBegin(): void {
602 this._down = true;

Callers

nothing calls this directly

Calls 2

setStateMethod · 0.95
hasPageMethod · 0.80

Tested by

no test coverage detected