提交 b7e6d7c4 编写于 作者: Y yeyinglong

fixed 2ec90998 from https://gitee.com/yeyinglong/docs/pulls/14789

List onScrollFrameBegin 事件修改
Signed-off-by: Nyeyinglong <yeyinglong@live.com>
上级 df2c484b
......@@ -271,8 +271,8 @@ struct NestedScroll {
this.listPosition = 2
})
.onScrollFrameBegin((offset: number) => {
if ((this.listPosition == 0 && offset >= 0) || (this.listPosition == 2 && offset <= 0)) {
this.scrollerForScroll.scrollBy(0, -offset)
if ((this.listPosition == 0 && offset <= 0) || (this.listPosition == 2 && offset >= 0)) {
this.scrollerForScroll.scrollBy(0, offset)
return { offsetRemain: 0 }
}
this.listPosition = 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册