Extension to handle the scroll and properties of Scroll Views (For MIT AI2 and its distros)
Latest Version: 1.4
Last Updated: July 27, 2023
HReachLeft | Event raised when HSA reach left |
HReachRight | Event raised when HSA reach right |
VReachTop | Event raised when VSA reach top |
VReachBottom | Event raised when VSA reach bottom |
OnVScroll | Event raised when a scroll happens in vsa.scrollY | number |
OnHScroll | Event raised when a scroll happens in hsa.scrollX | number |
OnHTouchDown | Event indicating a touch down on hsa. |
OnHTouchUp | Event indicating a touch up on hsa. |
OnVTouchUp | Event indicating a touch up on vsa. |
OnVTouchDown | Event indicating a touch down on vsa. |
RegisterHSA | Registers given horizontal scroll arrangement for method executionhsa | component |
RegisterVSA | Registers given vertical scroll arrangement for method executionvsa | component |
ToggleScrolling | Toggles scrolling of specific scroll viewenable | boolean hscrollView | boolean |
ScrollTo | Set the scrolled position of your view.sX and yX are the scroll position of view.If hScrollView value is true then method will be executed for hsa.sX | number sY | number hScrollView | boolean |
SmoothScrollTo | Smoothly scrolls to given position.If any speed is set then it will use that speed for scrolling.sX | number sY | number hScrollView | boolean |
ScrollBy | Scrolls to given position by pixels.pX and pY are pixel value of scroll position.If hScrollView value is true then method will be executed for hsa.pX | number pY | number hScrollView | boolean |
SmoothScrollBy | Smoothly scrolls by the given pixel position of view.If any speed is set then it will use that speed for scrolling.pX | number pY | number hScrollView | boolean |
VArrowScroll | Handle scrolling in response to an up or down arrow click.direction | number |
HArrowScroll | Handle scrolling in response to an left or right arrow click.direction | number |
VGetScrollY | Returns current scrollY position of vsa.0 if no view is registered. |
HMaxScroll | Returns max scroll position of hsa.0 if no view is registered. |
VMaxScroll | Returns max scroll position of vsa.0 if no view is registered. |
HGetScrollX | Returns current scrollX position of hsa.0 if no view is registered. |
CanVSAScrollVertically | Returns whether VSA can scroll in up(-1) and down(1)direction | number |
CanHSAScrollHorizontally | Returns whether HSA can scroll in left(-1) and right(1)direction | number |
VPageScroll | Handles scrolling in response to a 'page up/down' shortcut press. This method will scroll the view by one page up or down and give the focus to the topmost/bottommost component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.direction | number |
HPageScroll | Handles scrolling in response to a 'page up/down' shortcut press. This method will scroll the view by one page up or down and give the focus to the topleft/right component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.direction | number |
VFullScroll | Handles scrolling in response to a 'home/end' shortcut press. This method will scroll the view to the top or bottom and give the focus to the topmost/bottommost component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.direction | number |
HFullScroll | Handles scrolling in response to a 'home/end' shortcut press. This method will scroll the view to the left or right and give the focus to the leftmost/rightmost component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.direction | number |
UnregisterHSA | Unregisters previously registered hsa. |
UnregisterVSA | Unregisters previously registered vsa. |
VFling | Fling the vsa with given velocity.Positive numbers mean that the finger/cursor is moving down the screen, which means we want to scroll towards the top.velocityY | number |
HFling | Fling the hsa with given velocity.Positive numbers mean that the finger/cursor is moving right the screen, which means we want to scroll towards the left.velocityX | number |
HFadingEdgeEnabled | Sets fading edge effect in HScroll Viewb | boolean |
HSetEdgeEffectColor | Sets the edge effect color for both left and right edge effects of hsa. Property Type : write-only Accepts : number |
VSetEdgeEffectColor | Sets the edge effect color for both top and bottom edge effects of vsa. Property Type : write-only Accepts : number |
VFadingEdgeEnabled | Sets fading edge effect in VScroll View Property Type : write-only Accepts : boolean |
HSmoothScrollSpeed | Sets smooth scrolling speed for hsa.Setting it 0 will reset the speed. Property Type : write-only Accepts : number |
VSmoothScrollSpeed | Sets smooth scrolling speed for vsa.Setting it 0 will reset the speed. Property Type : write-only Accepts : number |
https://community.kodular.io/t/scrollhandler-handle-the-scroll-of-scroll-views/78008
http://sunnythedeveloper.epizy.com/2020/08/14/scrollhandler-handle-the-scroll-of-scroll-views