<scroll-view>Basic scrolling component supporting both horizontal and vertical scrolling. When its content area is larger than its visible area, it allows users to scroll to reveal more content.
<scroll-view> supports both horizontal and vertical scrolling, implemented through the scroll-orientation properties.
<scroll-view> always uses the linear layout, and the layout direction is determined by the scroll-orientation attributes.

Use event callbacks such as bindscroll, bindscrolltoupper, and bindscrolltolower to monitor changes in scroll progress.

As a child node of <scroll-view>, you can set the sticky attribute making the child node remain at a certain distance from the top of the <scroll-view> and not continue scrolling with the content.

sticky can only be set for direct child nodes of <scroll-view>. On Android only, you need to add the flatten={false} attribute to sticky nodes.
The direct child nodes of <scroll-view> only support linear and sticky. If you need more complex layouts, such as child nodes adapting to expand, it is recommended to provide a single child view to the <scroll-view> and implement more robust CSS capabilities within that single child node.
bouncesEnable bounce effect
enable-scrollEnable dragging
initial-scroll-offsetInitial scroll position, only effective once, in PX
initial-scroll-to-indexScroll to specified child node on first screen, only effective once. All direct child nodes must be flatten=false.
lower-thresholdSet upper threshold to bindscrolltoupper event.
scroll-bar-enableEnable scrollbar
scroll-orientationReplacement of scroll-x and scroll-y
upper-thresholdSet upper threshold to bindscrolltoupper event.
Frontend can bind corresponding event callbacks to listen for runtime behaviors of the element, as shown below.
bindcontentsizechangedThis event is triggered when the scrollview's content size changed.
bindscrollThis event is triggered when the scrollview is scrolling.
bindscrollendThis event is triggered when the scrollview's scroll ended.
bindscrolltolowerThis event is triggered when the lower/right edge of the scrolling area intersects with the visible area defined by the lowerThreshold.
bindscrolltoupperThis event is triggered when the upper/left edge of the scrolling area intersects with the visible area defined by the upperThreshold.
Frontend can invoke component methods via the SelectorQuery API.
autoScrollAutomatic scrolling
scrollByScroll by specified offset
scrollToScroll to specified position
<scroll-view> creates all of its child nodes at once, potentially causing severe first-screen load times. Use exposure events to drive it to create only visible child nodes.
<scroll-view> lacks any reuse mechanism. If content is too extensive, it may consume an exceptionally large amount of memory, possibly causing OOM and other stability problems.
For data exceeding three screens, use <list> to optimize performance, or simulate <VisualizedList> logic based on exposure events.
LCD tables only load in the browser