mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 09:12:41 +00:00
!48533 修复了grid底部有概率回弹失败的问题
Merge pull request !48533 from tomkl123/20241114_grid_sync
This commit is contained in:
commit
49f0398538
@ -1802,7 +1802,7 @@ void GridPattern::SyncLayoutBeforeSpring()
|
||||
}
|
||||
if (!UseIrregularLayout()) {
|
||||
const float delta = info.currentOffset_ - info.prevOffset_;
|
||||
if (!info.lineHeightMap_.empty() && LessOrEqual(delta, -info.lineHeightMap_.rbegin()->second)) {
|
||||
if (!info.lineHeightMap_.empty() && LessOrEqual(delta, -info.lineHeightMap_[info_.startMainLineIndex_])) {
|
||||
// old layout can't handle large overScroll offset. Avoid by skipping this layout.
|
||||
// Spring animation plays immediately afterwards, so losing this frame's offset is fine
|
||||
info.currentOffset_ = info.prevOffset_;
|
||||
|
Loading…
Reference in New Issue
Block a user