()
| 275 | } |
| 276 | let raf = 0; |
| 277 | const tick = () => { |
| 278 | const el = msgsRef.current; |
| 279 | if (el && !userScrolledUpRef.current) { |
| 280 | easeScrollToBottom(el, DEFAULT_STREAM_SCROLL_EASE); |
| 281 | } |
| 282 | raf = requestAnimationFrame(tick); |
| 283 | }; |
| 284 | raf = requestAnimationFrame(tick); |
| 285 | return () => cancelAnimationFrame(raf); |
| 286 | }, [busy]); |
nothing calls this directly
no test coverage detected