mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
!48159 修复scroll设置限位滚动,拋滑滚动条会导致scroll过界的问题
Merge pull request !48159 from honzx/1110snap
This commit is contained in:
commit
946f64b23b
@ -193,6 +193,10 @@ public:
|
||||
{
|
||||
return isPressed_;
|
||||
}
|
||||
bool IsDriving() const
|
||||
{
|
||||
return isDriving_;
|
||||
}
|
||||
void SetHover(bool hover)
|
||||
{
|
||||
isHover_ = hover;
|
||||
|
@ -166,7 +166,7 @@ bool ScrollPattern::ScrollSnapTrigger()
|
||||
{
|
||||
auto scrollBar = GetScrollBar();
|
||||
auto scrollBarProxy = GetScrollBarProxy();
|
||||
if (scrollBar && scrollBar->IsPressed()) {
|
||||
if (scrollBar && scrollBar->IsDriving()) {
|
||||
return false;
|
||||
}
|
||||
if (scrollBarProxy && scrollBarProxy->IsScrollSnapTrigger()) {
|
||||
|
Loading…
Reference in New Issue
Block a user