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

Function canStart

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

Source from the content-addressed store, hash-verified

39 };
40
41 const canStart = (detail: GestureDetail) => {
42 /**
43 * The user's locale can change mid-session,
44 * so we need to check text direction at
45 * the beginning of every gesture.
46 */
47 rtl = isRTL(el);
48
49 return isAtEdge(detail) && canStartHandler();
50 };
51
52 const onMove = (detail: GestureDetail) => {
53 // set the transition animation's progress

Callers 1

pointerDownFunction · 0.70

Calls 2

isRTLFunction · 0.90
isAtEdgeFunction · 0.85

Tested by

no test coverage detected