(detail: GestureDetail)
| 584 | } |
| 585 | |
| 586 | private onMove(detail: GestureDetail) { |
| 587 | if (!this.isAnimating || !this.animation) { |
| 588 | assert(false, 'isAnimating has to be true'); |
| 589 | return; |
| 590 | } |
| 591 | |
| 592 | const delta = computeDelta(detail.deltaX, this._isOpen, this.isEndSide); |
| 593 | const stepValue = delta / this.width; |
| 594 | |
| 595 | this.animation.progressStep(this._isOpen ? 1 - stepValue : stepValue); |
| 596 | } |
| 597 | |
| 598 | private onEnd(detail: GestureDetail) { |
| 599 | if (!this.isAnimating || !this.animation) { |
no test coverage detected