()
| 16 | setPast(window.scrollY >= window.innerHeight); |
| 17 | }; |
| 18 | const onScroll = () => { |
| 19 | if (!frame) { |
| 20 | frame = window.requestAnimationFrame(read); |
| 21 | } |
| 22 | }; |
| 23 | read(); |
| 24 | window.addEventListener('scroll', onScroll, { passive: true }); |
| 25 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected