MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / scrollToIndex

Method scrollToIndex

src/components/virtualList/index.js:140–142  ·  view source on GitHub ↗

* Scroll to a specific item index * @param {number} index

(index)

Source from the content-addressed store, hash-verified

138 * @param {number} index
139 */
140 scrollToIndex(index) {
141 this.container.scrollTop = index * this.itemHeight;
142 }
143
144 /**
145 * Get the currently visible range

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected