mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 17:21:11 +00:00
修复list的edgeEffect为none时onscrollstop不触发的问题
Signed-off-by: shihongjie <shihongjie@huawei.com> Change-Id: Id99f70cf2ee80a0441ac607f1e0afffed5aaeffe
This commit is contained in:
parent
c38cecf0b8
commit
cb974a73e2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user