未验证 提交 e044fb1d 编写于 作者: O openharmony_ci 提交者: Gitee

!14839 【monthly】onScrollFrameBegin事件修改

Merge pull request !14839 from yeyinglong/cherry-pick-1676714448
...@@ -271,8 +271,8 @@ struct NestedScroll { ...@@ -271,8 +271,8 @@ struct NestedScroll {
this.listPosition = 2 this.listPosition = 2
}) })
.onScrollFrameBegin((offset: number) => { .onScrollFrameBegin((offset: number) => {
if ((this.listPosition == 0 && offset >= 0) || (this.listPosition == 2 && offset <= 0)) { if ((this.listPosition == 0 && offset <= 0) || (this.listPosition == 2 && offset >= 0)) {
this.scrollerForScroll.scrollBy(0, -offset) this.scrollerForScroll.scrollBy(0, offset)
return { offsetRemain: 0 } return { offsetRemain: 0 }
} }
this.listPosition = 1 this.listPosition = 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册