()
| 52 | * @returns {Number} scrollTop |
| 53 | */ |
| 54 | const getScrollTop = function() { |
| 55 | |
| 56 | // Use scrollTop because it's faster than getBoundingClientRect() |
| 57 | return (document.scrollingElement || document.documentElement).scrollTop |
| 58 | |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Returns the height of the viewport. |
no outgoing calls
no test coverage detected