MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / onMove

Function onMove

core/src/utils/gesture/swipe-back.ts:52–57  ·  view source on GitHub ↗
(detail: GestureDetail)

Source from the content-addressed store, hash-verified

50 };
51
52 const onMove = (detail: GestureDetail) => {
53 // set the transition animation's progress
54 const delta = getDeltaX(detail);
55 const stepValue = delta / win.innerWidth;
56 onMoveHandler(stepValue);
57 };
58
59 const onEnd = (detail: GestureDetail) => {
60 // the swipe back gesture has ended

Callers 1

fireOnMoveFunction · 0.70

Calls 1

getDeltaXFunction · 0.85

Tested by

no test coverage detected