(el: DOMElement, offset = 0)
| 135 | scrollMutated(el); |
| 136 | }, |
| 137 | scrollToElement(el: DOMElement, offset = 0) { |
| 138 | const box = domRef.current; |
| 139 | if (!box) return; |
| 140 | box.stickyScroll = false; |
| 141 | box.pendingScrollDelta = undefined; |
| 142 | box.scrollAnchor = { |
| 143 | el, |
| 144 | offset |
| 145 | }; |
| 146 | scrollMutated(box); |
| 147 | }, |
| 148 | scrollBy(dy: number) { |
| 149 | const el = domRef.current; |
| 150 | if (!el) return; |
nothing calls this directly
no test coverage detected