Home
last modified time | relevance | path

Searched refs:scrollSnapVelocity_ (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_layout_algorithm.h172 scrollSnapVelocity_ = velocity; in SetScrollSnapVelocity()
536 float scrollSnapVelocity_; variable
H A Dlist_pattern.cpp166 … if (scrollable_ && !(NearZero(predictSnapOffset.value()) && NearZero(scrollSnapVelocity_)) && in OnDirtyLayoutWrapperSwap()
168 scrollable_->StartScrollSnapMotion(predictSnapOffset.value(), scrollSnapVelocity_); in OnDirtyLayoutWrapperSwap()
175 scrollSnapVelocity_ = 0.0f; in OnDirtyLayoutWrapperSwap()
604 listLayoutAlgorithm->SetScrollSnapVelocity(scrollSnapVelocity_); in CreateLayoutAlgorithm()
943 scrollSnapVelocity_ = velocity; in OnScrollSnapCallback()
1575 scrollSnapVelocity_ = 0.0f; in AnimateToTarget()
H A Dlist_pattern.h433 float scrollSnapVelocity_ = 0.0f; variable
H A Dlist_layout_algorithm.cpp2318 if (scrollSnapVelocity_ < -SCROLL_SNAP_VELOCITY_TH * Scrollable::GetVelocityScale()) { in FindPredictSnapEndIndexInItemPositions()
2320 } else if (scrollSnapVelocity_ > SCROLL_SNAP_VELOCITY_TH * Scrollable::GetVelocityScale()) { in FindPredictSnapEndIndexInItemPositions()