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

Function onTransitionEnd

packages/shared/src/components/shell/sheetDrag.ts:84–88  ·  view source on GitHub ↗
(event: TransitionEvent)

Source from the content-addressed store, hash-verified

82 // settling; and a release exactly at a stop transitions nothing, so the
83 // timer ends the settle when no event will.
84 const onTransitionEnd = (event: TransitionEvent) => {
85 if (event.target === panel) {
86 endSettle();
87 }
88 };
89 const timer = setTimeout(() => endSettle(), motion.snap + 80);
90 endSettle = () => {
91 endSettle = () => undefined;

Callers

nothing calls this directly

Calls 1

endSettleFunction · 0.85

Tested by

no test coverage detected