MCPcopy Create free account
hub / github.com/caseywebdev/react-list / scrollTo

Method scrollTo

src/react-list.js:452–454  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

450 }
451
452 scrollTo(index) {
453 if (index != null) this.setScroll(this.getSpaceBefore(index));
454 }
455
456 scrollAround(index) {
457 const current = this.getScrollPosition();

Callers 3

react-list.jsFile · 0.80
setScrollMethod · 0.80
index.jsFile · 0.80

Calls 2

setScrollMethod · 0.95
getSpaceBeforeMethod · 0.95

Tested by

no test coverage detected