-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
无限滚动组件使用滚动条不能一直触发on-load #6133
Comments
帮你发现问题了 handleCheckBottom检查是否在底部用的是scrollbar的containerScrollTop,但在scrollbar的回调中其实先触发onScroll事件再更新containerScrollTop的值,所以handleCheckBottom中拿到的containerScrollTop的值其实不是最新的 |
window.addEventListener('scroll', onScroll, true); |
描述错误
无限滚动组件拖动滚动条到底部时,然后就无法再触发到底部了
复现步骤
使用滚动条拖动到底部,元素增加后,就不再继续出发加载了,使用文档的演示就可以复现
最小复现链接
https://www.naiveui.com/zh-CN/light/components/infinite-scroll
系统信息
使用的包管理器
npm
验证
The text was updated successfully, but these errors were encountered: