From 2c209f9feab0f4cdb33835bbce0f80965c3ccd83 Mon Sep 17 00:00:00 2001 From: SQ Date: Mon, 1 Sep 2025 15:24:09 +0800 Subject: [PATCH] =?UTF-8?q?swiper=E6=8E=A5=E5=8F=A3=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: SQ --- arkui/ace_engine/native/native_node.h | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 07a9708d9ff..2578eb5c2da 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -7905,6 +7905,22 @@ typedef enum { */ NODE_SWIPER_EVENT_ON_CONTENT_DID_SCROLL, + /** + * @brief Defines the event triggered when content in the swiper component will scroll. + * Instructions: Before page scrolling, the ContentWillScrollCallback callback is invoked. \n \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains three parameters:\n + * ArkUI_NodeComponentEvent.data[0].i32: the index value of the current child page. \n + * ArkUI_NodeComponentEvent.data[1].i32: the index value of the child page that will display. \n + * ArkUI_NodeComponentEvent.data[2].f32: the sliding offset of each frame. + * Positive numbers indicating slide backward(e.g. from index=1 to index=0), negative numbers indicating + * slide forward(e.g. from index=0 to index=1). \n + * + * @since 15 + */ + NODE_SWIPER_EVENT_ON_CONTENT_WILL_SCROLL = 1001007, + /** * @brief Defines the event triggered when the selected index of the ARKUI_NODE_SWIPER changed. * @@ -7939,22 +7955,6 @@ typedef enum { */ NODE_SWIPER_EVENT_ON_UNSELECTED = 1001006, - /** - * @brief Defines the event triggered when content in the swiper component will scroll. - * Instructions: Before page scrolling, the ContentWillScrollCallback callback is invoked. \n \n - * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is - * {@link ArkUI_NodeComponentEvent}. \n - * {@link ArkUI_NodeComponentEvent} contains three parameters:\n - * ArkUI_NodeComponentEvent.data[0].i32: the index value of the current child page. \n - * ArkUI_NodeComponentEvent.data[1].i32: the index value of the child page that will display. \n - * ArkUI_NodeComponentEvent.data[2].f32: the sliding offset of each frame. - * Positive numbers indicating slide backward(e.g. from index=1 to index=0), negative numbers indicating - * slide forward(e.g. from index=0 to index=1). \n - * - * @since 15 - */ - NODE_SWIPER_EVENT_ON_CONTENT_WILL_SCROLL = 1001007, - /** * @brief Defines the ARKUI_NODE_SWIPER scroll state change event. * This event is triggered when the scroll state of the Swiper component changes during user dragging, -- Gitee