()
| 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; |