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

Function onAnimationEnd

packages/shared/src/components/shell/sheetDrag.ts:247–251  ·  view source on GitHub ↗
(event: AnimationEvent)

Source from the content-addressed store, hash-verified

245 // Once the sheet has entered, its enter animation is over for good; a
246 // drag that removes and restores the panel's state must not replay it.
247 const onAnimationEnd = (event: AnimationEvent) => {
248 if (event.target === panel) {
249 panel.setAttribute('data-entered', 'true');
250 }
251 };
252
253 panel.addEventListener('animationend', onAnimationEnd);
254 panel.addEventListener('touchstart', onTouchStart, { passive: true });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected