diff --git a/frameworks/core/components_ng/pattern/scrollable/scrollable.h b/frameworks/core/components_ng/pattern/scrollable/scrollable.h index 7347c5c5b0ccb5d1cb923f6d02db79caf7010549..25b658837e41ab1d58925b79647440583dbcd125 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.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;