scroll capi supports fling

Signed-off-by: hongzexuan <hongzexuan@huawei.com>
Change-Id: I943e83f0a0865935522320952008d4d21aa2013a
This commit is contained in:
hongzexuan
2024-09-27 13:53:20 +08:00
parent 7c1371d567
commit 633596b086
+12
View File
@@ -4483,6 +4483,18 @@ typedef enum {
*/
NODE_SCROLL_BY,
/**
* @brief Performs inertial scrolling based on the initial velocity passed in.
*
* Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n
* .value[0].f32: Initial velocity of inertial scrolling. Unit: vp/s. If the value specified is 0, it is
* considered as invalid, and the scrolling for this instance will not take effect. If the value is positive,
* the scroll will move downward; if the value is negative, the scroll will move upward. \n
*
* @since 13
*/
NODE_SCROLL_FLING,
/**
* @brief Defines the direction in which the list items are arranged. This attribute can be set, reset, and
* obtained as required through APIs.