(event: AnimationEvent)
| 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 }); |
nothing calls this directly
no outgoing calls
no test coverage detected