-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Solutions: PullToRefresh cannot trigger pull-up action #3521
Comments
This was referenced Jan 17, 2020
senwong
referenced
this issue
in senwong/m-pull-to-refresh
Jun 1, 2020
你好!请问怎么找这个源码,我在我项目全局搜索isEdge函数没搜到,请问预计那个版本修复这个问题? |
let __height = Math.abs(ele.scrollHeight - ele.scrollTop - ele.clientHeight) |
v2 已经停止维护了,建议升级到 v5 吧: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1、antd-mobile的PullToRefresh组建在有的手机上无法触发上拉加载
因为使用rem的原因,导致动态设置到元素上的高度(px)有可能小数,从而造成
ele.scrollHeight-ele.scrollTop != ele.clientHeight
0<=Math.abs(ele.scrollHeight-ele.scrollTop - ele.clientHeight) <=1
,至于为什么用区间,因为在部分机型上MIX2S的scrollTop会有小数情况,此处不在贴出备注:源码位置,在PullToRefresh.js中isEdge方法中,为了避免升级版本导致不可用,可自行将此源码拷贝,建议自行封装此组建
源码改成PullToRefresh.js中的isEdge方法:
The text was updated successfully, but these errors were encountered: