MCPcopy Create free account
hub / github.com/massCodeIO/massCode / scrollToElement

Function scrollToElement

src/renderer/utils/index.ts:10–15  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

8}
9
10export function scrollToElement(selector: string) {
11 const element = document.querySelector(selector)
12 if (element) {
13 element.scrollIntoView({ block: 'center' })
14 }
15}
16
17export function getContiguousSelection(
18 orderedIds: number[],

Callers 5

createFolderAndSelectFunction · 0.90
deleteSelectedFoldersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected