()
| 648 | useEffect(() => { |
| 649 | if (!isActive) return; |
| 650 | function stop(): void { |
| 651 | dirRef.current = 0; |
| 652 | if (timerRef.current) { |
| 653 | clearInterval(timerRef.current); |
| 654 | timerRef.current = null; |
| 655 | } |
| 656 | } |
| 657 | function tick(): void { |
| 658 | const sel = selection.getState(); |
| 659 | const s = scrollRef.current; |
no outgoing calls
no test coverage detected