修复list的edgeEffect为none时onscrollstop不触发的问题

Signed-off-by: shihongjie <shihongjie@huawei.com>
Change-Id: Id99f70cf2ee80a0441ac607f1e0afffed5aaeffe
This commit is contained in:
shihongjie 2024-07-20 18:15:17 +08:00
parent c38cecf0b8
commit cb974a73e2

View File

@ -767,9 +767,7 @@ void Scrollable::ProcessScrollSnapStop()
void Scrollable::OnAnimateStop()
{
if (moved_) {
HandleScrollEnd(std::nullopt);
}
HandleScrollEnd(std::nullopt);
currentVelocity_ = 0.0;
if (isTouching_ || isDragUpdateStop_) {
return;
@ -1241,7 +1239,6 @@ void Scrollable::StopSpringAnimation()
scroll->springOffsetProperty_->Set(scroll->currentPos_);
},
nullptr);
OnAnimateStop();
}
currentVelocity_ = 0.0;
}