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

Function getDeltaX

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

Source from the content-addressed store, hash-verified

31 };
32
33 const getDeltaX = (detail: GestureDetail) => {
34 return rtl ? -detail.deltaX : detail.deltaX;
35 };
36
37 const getVelocityX = (detail: GestureDetail) => {
38 return rtl ? -detail.velocityX : detail.velocityX;

Callers 2

onMoveFunction · 0.85
onEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected