(el: DOMElement, offset = 0)
| 128 | scrollMutated(el); |
| 129 | }, |
| 130 | scrollToElement(el: DOMElement, offset = 0) { |
| 131 | const box = domRef.current; |
| 132 | if (!box) return; |
| 133 | box.stickyScroll = false; |
| 134 | box.pendingScrollDelta = undefined; |
| 135 | box.scrollAnchor = { |
| 136 | el, |
| 137 | offset |
| 138 | }; |
| 139 | scrollMutated(box); |
| 140 | }, |
| 141 | scrollBy(dy: number) { |
| 142 | const el = domRef.current; |
| 143 | if (!el) return; |
nothing calls this directly
no test coverage detected