MCPcopy Create free account
hub / github.com/dailydotdev/apps / onSwipedLeft

Function onSwipedLeft

packages/shared/src/components/containers/Carousel.tsx:59–68  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

57 };
58
59 const onSwipedLeft: SwipeCallback = (e) => {
60 e?.event?.stopPropagation?.();
61
62 const max = items.length - 1;
63 if (index === max) {
64 return isNullOrUndefined(e?.dir) && onEnd?.(e);
65 }
66
67 return onUpdateIndex(1);
68 };
69
70 const handlers = useSwipeable({ onSwipedLeft, onSwipedRight });
71 const indicator = (

Callers 3

PromotionTourFunction · 0.85
SquadTourFunction · 0.85

Calls 2

isNullOrUndefinedFunction · 0.90
onUpdateIndexFunction · 0.85

Tested by

no test coverage detected