()
| 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 |
no outgoing calls
no test coverage detected