()
| 353 | ); |
| 354 | |
| 355 | const handleRootScroll = () => { |
| 356 | const rootNode = scrollableRootRef.current; |
| 357 | if (rootNode) { |
| 358 | setIsLeftScrollAtBottom(isScrollAtBottom(rootNode)); |
| 359 | const scrollDistanceToBottom = rootNode.scrollHeight - rootNode.scrollTop; |
| 360 | lastScrollDistanceToBottomRef.current = scrollDistanceToBottom; |
| 361 | } |
| 362 | }; |
| 363 | |
| 364 | function scrollDown(offset = 0) { |
| 365 | const scrollableRoot = scrollableRootRef.current; |
nothing calls this directly
no test coverage detected