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

Function syncScrollUi

src/lib/editorManager.js:2293–2299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2291 const scroller = editor.scrollDOM;
2292
2293 function syncScrollUi() {
2294 scrollSyncRaf = 0;
2295 editor.requestMeasure({
2296 read: () => readScrollMetrics(),
2297 write: updateScrollbarsFromMetrics,
2298 });
2299 }
2300
2301 function handleEditorScroll() {
2302 if (!scroller) return;

Callers 1

setupEditorFunction · 0.85

Calls 1

readScrollMetricsFunction · 0.85

Tested by

no test coverage detected