Scroll Method (SparkAirHTML)

Action

Dispatched when the scroll events occur. This event is dispatched if the scrolling is done programmatically or by the user.

Syntax

airHTML.Scroll(position, direction, detail)
Variable Description
position The new scroll position. Integer.
direction The direction of motion: ScrollEventDirection.VERTICAL or ScrollEventDirection.HORIZONTAL. FlexScrollDirection.
detail Provides the details of the scroll activity. For most scroll activities the value is one of the listed constants, such as THUMB_TRACK. If the event indicates that the scrollbar has moved up, down, left, or right, the value is the string concatenation of the amount of motion (such as "Line" or "Page") and the constant that indicates the direction, such as LEFT. FlexScrollDetail.