MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / onMove

Method onMove

core/src/components/menu/menu.tsx:586–596  ·  view source on GitHub ↗
(detail: GestureDetail)

Source from the content-addressed store, hash-verified

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) {

Callers 1

connectedCallbackMethod · 0.95

Calls 3

assertFunction · 0.90
computeDeltaFunction · 0.85
progressStepMethod · 0.80

Tested by

no test coverage detected