From 015d6a06cd0f72b8e2febb458d479496d27a55c4 Mon Sep 17 00:00:00 2001 From: yeyinglong_admin Date: Tue, 25 Feb 2025 18:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=A6=BB=E6=89=8B=E9=80=9F=E5=BA=A6=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yeyinglong_admin --- api/@internal/component/ets/common.d.ts | 28 ++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index ba9362cd38..9c901b7ec9 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -31220,6 +31220,19 @@ declare class ScrollableCommonMethod extends CommonMethod { */ onScrollStop(event: () => void): T; + /* + * Called when the scrollable will end dragging. + * + * @param { OnWillStopDraggingCallback } handler - callback of end dragging, + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + onWillStopDragging(handler: OnWillStopDraggingCallback): T; + /** * Sets the maximum initial velocity at the start of the fling animation that occurs after gesture-driven scrolling ends. * @@ -31323,6 +31336,19 @@ declare type OnWillScrollCallback = */ declare type OnScrollCallback = (scrollOffset: number, scrollState: ScrollState) => void; +/** + * On scroll callback using in scrollable onWillStopDragging. + * + * @typedef { function } OnWillStopDraggingCallback + * @param { number } velocity - The veolicity of the scroll view at the moment the touch was released. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ +declare type OnWillStopDraggingCallback = (velocity: number) => void; + /** * Defines the onMove callback. * @@ -32276,7 +32302,7 @@ declare interface UIScrollableCommonEvent extends UICommonEvent { * @since 19 */ setOnScrollStart(callback: Callback | undefined): void; - + /** * Set or reset the callback which is triggered when the scrolling stoped. * -- Gitee