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

Function getScrollPosition

src/cm/editorUtils.ts:60–63  ·  view source on GitHub ↗
(view: EditorView)

Source from the content-addressed store, hash-verified

58 * Get scroll position from editor view
59 */
60export function getScrollPosition(view: EditorView): ScrollPosition {
61 const { scrollTop, scrollLeft } = view.scrollDOM;
62 return { scrollTop, scrollLeft };
63}
64
65/**
66 * Set scroll position in CodeMirror editor view

Callers 1

saveState.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected