MCPcopy Index your code
hub / github.com/DHTMLX/gantt / pageScrollX

Function pageScrollX

samples/common/codehighlight/codemirror.js:2565–2571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2563 }
2564
2565 function pageScrollX() {
2566 // Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206
2567 // which causes page_Offset and bounding client rects to use
2568 // different reference viewports and invalidate our calculations.
2569 if (chrome && android) { return -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft)) }
2570 return window.pageXOffset || (document.documentElement || document.body).scrollLeft
2571 }
2572 function pageScrollY() {
2573 if (chrome && android) { return -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop)) }
2574 return window.pageYOffset || (document.documentElement || document.body).scrollTop

Callers 2

intoCoordSystemFunction · 0.85
fromCoordSystemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected