-
Notifications
You must be signed in to change notification settings - Fork 373
Scroll from 'body' tag can't be caught #100
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
Comments
That's great! I will fix it in the next version, thank you very much! |
@SerikDM the new version has been released, contains your solution, you can try it now. |
Hello @SerikDM , I'm sorry to tell you I have been rollback this change in the latest version, because I think the situation in this issue is a special case, we'd better use the <body infinite-wrapper>
...
<infinite-loading @infinite="infiniteHandler" force-use-infinite-wrapper></infinite-loading>
...
</body> Best regards. |
Hello @PeachScript , Version |
@imman731 maybe this solution can help you: #73 (comment) |
@PeachScript |
Are you sure you've found the real scroll wrapper element? You can listen its |
@PeachScript |
@imman731 oh, I found you used |
@PeachScript 冒昧的提問.. |
@PeachScript 我找到問題且成功了,但還是得設定max-height,否則會不斷loading data |
@PeachScript |
@imman731 不客气 :) |
Version
2.2.1
Vue.js version
2.5
What is expected?
Catch scroll event from 'body' element
What is actually happening?
Scroll even isn't caught
How to reproduce this problem?
add style 'overflow-y: scroll' to 'body' element
Solution:
update 'getScrollParent' method to check for 'BODY' tag at last place
`
getScrollParent (elm = this.$el) {
let result
`
The text was updated successfully, but these errors were encountered: