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

Function setScrollPosition

src/sidebarApps/searchInFiles/cmResultView.js:423–428  ·  view source on GitHub ↗
({ top = 0, left = 0 } = {})

Source from the content-addressed store, hash-verified

421 };
422 },
423 setScrollPosition({ top = 0, left = 0 } = {}) {
424 const scroller = view.scrollDOM;
425 if (!scroller) return;
426 scroller.scrollTop = top;
427 scroller.scrollLeft = left;
428 },
429 get view() {
430 return view;
431 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected