From e90ecfe5b238e0b3456f4423679749123a3c57d6 Mon Sep 17 00:00:00 2001 From: lancer Date: Wed, 27 Aug 2025 17:44:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A1=A5=E5=85=85onWillStartDragging?= =?UTF-8?q?=E7=AD=89=E4=BA=8B=E4=BB=B6=E7=9A=84=E8=AF=B4=E6=98=8E=20Signed?= =?UTF-8?q?-off-by:=20haoshuo=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arkui/ace_engine/native/native_node.h | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 07456c72e7a..60f87494770 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -8299,6 +8299,48 @@ typedef enum { * @since 20 */ NODE_SCROLL_EVENT_ON_ZOOM_STOP, + /** + * @brief Defines the callback for when the scrollable will start dragging. + * + * This event is triggered when the scrollable will start dragging. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains no parameters: \n + * @since 21 + */ + NODE_SCROLL_EVENT_ON_WILL_START_DRAGGING = 1002013, + /** + * @brief Defines the callback for when the scrollable did end dragging. + * + * This event is triggered when the scrollable did end dragging. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains one parameter: \n + * ArkUI_NodeComponentEvent.data[0].i32: whether start fling animation. \n + * + * @since 21 + */ + NODE_SCROLL_EVENT_ON_DID_STOP_DRAGGING = 1002014, + /** + * @brief Defines the callback for when the scrollable will start fling. + * + * This event is triggered when the scrollable will start fling. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains no parameters: \n + * @since 21 + */ + NODE_SCROLL_EVENT_ON_WILL_START_FLING = 1002015, + /** + * @brief Defines the callback for when the scrollable did end fling. + * + * This event is triggered when the scrollable did end fling. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains no parameters: \n + * @since 21 + */ + NODE_SCROLL_EVENT_ON_DID_STOP_FLING = 1002016, /** * @brief Defines the enumerated values of the event triggered, \n * when a subcomponent of ARKUI_NODE_LIST is moved into or out of the list display area. \n -- Gitee From 3694270ee3142c2d1d844d31c5da62f25c05886a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E7=83=81?= Date: Mon, 8 Sep 2025 07:54:01 +0000 Subject: [PATCH 2/2] update arkui/ace_engine/native/native_node.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郝烁 --- arkui/ace_engine/native/native_node.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 60f87494770..ca8f6e25cd4 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -8306,7 +8306,7 @@ typedef enum { * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is * {@link ArkUI_NodeComponentEvent}. \n * {@link ArkUI_NodeComponentEvent} contains no parameters: \n - * @since 21 + * @since 22 */ NODE_SCROLL_EVENT_ON_WILL_START_DRAGGING = 1002013, /** @@ -8318,7 +8318,7 @@ typedef enum { * {@link ArkUI_NodeComponentEvent} contains one parameter: \n * ArkUI_NodeComponentEvent.data[0].i32: whether start fling animation. \n * - * @since 21 + * @since 22 */ NODE_SCROLL_EVENT_ON_DID_STOP_DRAGGING = 1002014, /** @@ -8328,7 +8328,7 @@ typedef enum { * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is * {@link ArkUI_NodeComponentEvent}. \n * {@link ArkUI_NodeComponentEvent} contains no parameters: \n - * @since 21 + * @since 22 */ NODE_SCROLL_EVENT_ON_WILL_START_FLING = 1002015, /** @@ -8338,7 +8338,7 @@ typedef enum { * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is * {@link ArkUI_NodeComponentEvent}. \n * {@link ArkUI_NodeComponentEvent} contains no parameters: \n - * @since 21 + * @since 22 */ NODE_SCROLL_EVENT_ON_DID_STOP_FLING = 1002016, /** -- Gitee