Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PullRefresh] 下拉刷新判定时机异常 #814

Closed
l246804 opened this issue Jan 5, 2023 · 3 comments
Closed

[PullRefresh] 下拉刷新判定时机异常 #814

l246804 opened this issue Jan 5, 2023 · 3 comments

Comments

@l246804
Copy link
Contributor

l246804 commented Jan 5, 2023

Bug report 🐞

当容器仅向下滚动少许距离时,此时上拉至顶不需要下拉刷新,由于当前的下拉刷新判定时机是滚动容器 scrollTop0,导致命中下拉机制,且由于 scrollTop 大于 0,导致下拉动画快速过渡并无法取消。

Version & Environment

  • @varlet/ui@latest

Expectation

当容器元素 scrollTop 不为 0 时,此次触摸滑动不应命中下拉机制,当 scrollTop0 时允许命中下拉机制。

Actual results (or Errors)

229d2927-dc5f-4680-ae8d-d5a18b804dc9 (1)

@BeADre
Copy link
Member

BeADre commented Jan 5, 2023

能给一个最小化可复现的 demo吗

@l246804
Copy link
Contributor Author

l246804 commented Jan 5, 2023

操作流程:打开后,f12 开启手机模式,先滚动下列表,再向上拉至顶部。

复现 demo

@BeADre
Copy link
Member

BeADre commented Jan 5, 2023

ok 已复现

@BeADre BeADre closed this as completed in 08b04e3 Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants