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

Function getScrollPosition

src/sidebarApps/searchInFiles/cmResultView.js:417–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 this.setValue("");
416 },
417 getScrollPosition() {
418 return {
419 top: view.scrollDOM?.scrollTop ?? 0,
420 left: view.scrollDOM?.scrollLeft ?? 0,
421 };
422 },
423 setScrollPosition({ top = 0, left = 0 } = {}) {
424 const scroller = view.scrollDOM;
425 if (!scroller) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected