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
Scroll not working properly #2137
Comments
@gijo-varghese happy hear you are using the scroll component! The idea with Do I understand correct that you would like the event to fire immediately when you reach the edge? I think we could add that, I see use case for that also. |
@SergioCrisostomo Thanks for your quick response! I'm building a chat application where admin can see the list of users on his website and chat with them. So it will have a list of users and messages. When admin scrolls down the user's list, the new users should be appended. Similarly for Messages, initially 10-15 messages will be displayed. When he scrolls up, rest will be added. Right now I can't use iview's scroll for that. Because of that stretch/rubber effect. It may be good in mobile. But in desktop (I'm using the scroll wheel in mouse) its very hard to make it work. I had to scroll till the end, then scroll hard again to load it. If you can fire an event immediately on reaching the edge, that would be really great! Maybe |
just discussed with @icarusion and he agrees also we add props so we can trigger callback on "distance to edge". Not sure what API should be so I write here and we can all think about it: New prop naming suggestion/example: a) This API would have |
how about set [Number | Array], if just set Number like |
@SergioCrisostomo |
Thanks for feedback! We could add then: @icarusion does that sound 👍 ? |
No problem 👍 |
@SergioCrisostomo @icarusion I still couldn't find it in the docs. Is it updated? https://www.iviewui.com/components/scroll-en |
Not demo, just a props desc |
Ok. Thanks |
The scroll component (https://www.iviewui.com/components/scroll-en) isn't detecting the
:on-reach-bottom
properly. After loading everything, when I scroll down, nothing happens (I've reached the end). Only if I try to scroll again the event triggers. Same thing happens for "on-reach-top"https://jsfiddle.net/06dz0jye/
The text was updated successfully, but these errors were encountered: