hyTags
HomeHome DocumentationDocumentation

window-get-scroll-x

Gets the horizontal scroll position of the window.
Parameter
Type
Description
return
number
The horizontal scroll position in pixels
Test Case:Get scroll X initially zero
    <div></div>
    
    <window-get-scroll-x>
    <assert-equal value="0" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed