From fb4bebe85a1213290acf04bd98fc94e2b42ec207 Mon Sep 17 00:00:00 2001 From: gongwq Date: Thu, 15 May 2025 02:23:22 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gongwq --- .../components_ng/pattern/scrollable/scrollable.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/core/components_ng/pattern/scrollable/scrollable.h b/frameworks/core/components_ng/pattern/scrollable/scrollable.h index 7347c5c5b0c..04b3e243167 100644 --- a/frameworks/core/components_ng/pattern/scrollable/scrollable.h +++ b/frameworks/core/components_ng/pattern/scrollable/scrollable.h @@ -57,12 +57,12 @@ struct ScrollResult { }; struct SlidInfo { - double gestureVelocity; - double velocityScale; - double gain; - double maxFlingVelocity; - double slipFactor; - double friction; + double gestureVelocity {0}; + double velocityScale {0}; + double gain {0}; + double maxFlingVelocity {0}; + double slipFactor {0}; + double friction {0}; }; using ScrollEventCallback = std::function; -- Gitee From d7f8bd147b1ceac0052b183fffb21414f0b6cb03 Mon Sep 17 00:00:00 2001 From: gongwq Date: Thu, 15 May 2025 07:01:56 +0000 Subject: [PATCH 2/2] update frameworks/core/components_ng/pattern/scrollable/scrollable.h. Signed-off-by: gongwq --- .../components_ng/pattern/scrollable/scrollable.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/core/components_ng/pattern/scrollable/scrollable.h b/frameworks/core/components_ng/pattern/scrollable/scrollable.h index 04b3e243167..25b658837e4 100644 --- a/frameworks/core/components_ng/pattern/scrollable/scrollable.h +++ b/frameworks/core/components_ng/pattern/scrollable/scrollable.h @@ -57,12 +57,12 @@ struct ScrollResult { }; struct SlidInfo { - double gestureVelocity {0}; - double velocityScale {0}; - double gain {0}; - double maxFlingVelocity {0}; - double slipFactor {0}; - double friction {0}; + double gestureVelocity {0.0}; + double velocityScale {0.0}; + double gain {0.0}; + double maxFlingVelocity {0.0}; + double slipFactor {0.0}; + double friction {0.0}; }; using ScrollEventCallback = std::function; -- Gitee