()
| 117 | } |
| 118 | let raf = 0; |
| 119 | const tick = () => { |
| 120 | const el = ref.current; |
| 121 | if (el) { |
| 122 | syncNestedStreamScroll(el, { |
| 123 | pin: true, |
| 124 | smooth: true, |
| 125 | factor: DEFAULT_STREAM_SCROLL_EASE, |
| 126 | }); |
| 127 | } |
| 128 | raf = requestAnimationFrame(tick); |
| 129 | }; |
| 130 | raf = requestAnimationFrame(tick); |
| 131 | return () => cancelAnimationFrame(raf); |
| 132 | }, [isStreaming]); |
nothing calls this directly
no test coverage detected