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

Function readScrollMetrics

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

Source from the content-addressed store, hash-verified

2609 }
2610
2611 function readScrollMetrics() {
2612 const scroller = editor?.scrollDOM;
2613 if (!scroller) return null;
2614 return {
2615 scrollTop: scroller.scrollTop,
2616 scrollLeft: scroller.scrollLeft,
2617 scrollHeight: scroller.scrollHeight,
2618 scrollWidth: scroller.scrollWidth,
2619 clientHeight: scroller.clientHeight,
2620 clientWidth: scroller.clientWidth,
2621 };
2622 }
2623
2624 function updateScrollbarsFromMetrics(metrics) {
2625 if (!metrics) return;

Callers 1

syncScrollUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected