Block Group: | Logic |
Icon: |
![]() |
Listens for a scroll event, and returns scroll position and dimensions when the event occurs. Scrolling the component in Edit mode does not trigger a scroll event. If the onScrollEvent property does not exist for the component type, the listener will not function unless input is changed to a different event. onScrollEvent exists for groups and the Stage. It does not exist for page includes and text components.
These properties can take input and give output.
input specifies the event on which the scroll listener starts reporting data. By default, input is an instance of onScrollEvent, so the listener returns data whenever the parent is scrolled. Note that the onScrollEvent property does not exist for all component types.
active determines whether the block is currently listening.
fastResponse determines whether the fastResponse feature is enabled. Use this feature when you troubleshoot performance speed issues relating to this block.
These properties can give output. They cannot take input.
event returns the type of event that triggered this block.
scrollLeft returns the difference in pixels between the left edge of the content and the left edge of the portion currently scrolled to.
scrollTop returns the difference in pixels between the top edge of the content and the top edge of the portion currently scrolled to.
scrollWidth returns the width of the scrollable area.
scrollHeight returns the height of the scrollable area.
When the scrollTop property is greater than 100, a pop-up shape is displayed.
To cause a pop-up to appear when the user scrolls below a certain position:
100
.true
.false
.