Comments (28)
A lot of people need "scroll up" function :) Please, don't ignore it. Thanks
from react-infinite-scroll-component.
This feature has landed in the latest version :)
from react-infinite-scroll-component.
As of now no. :( The scroll handler only works for scrolling down. I can take this up on a weekend.
from react-infinite-scroll-component.
@ankeetmaini I would be willing to work on this if you could give me some more information on how you would want it implemented.
from react-infinite-scroll-component.
@WilliamStephens so I'm thinking like in the onScrollHandler I check if the element is at the bottom, then we call the next prop, similarly we'll check if the element has reached the top and call another prop say previous
some cases you might need to consider
- show loader at the top
- the user must prepend the data in the children
- scroll position handling
this is what I can think from the top of my mind.
from react-infinite-scroll-component.
@ankeetmaini Yea I just wasn't sure if all of the pulldown props should just be changed to pull props and work both ways. I was assuming it would only work one direction (up/down) at a time, so maybe a prop like scrollDirection or something like that and then if its up it would default to the bottom of the scoll container and just call next the same way when you scroll up.
from react-infinite-scroll-component.
from react-infinite-scroll-component.
@ankeetmaini Ahh okay I think we are talking about two different features. I was thinking about this as the same functionality just reverse, so it would only scroll up or down not both at the same time. I think bidirectional scroll would take a little bit more time than I have right now. I might just implement a scroll up in a fork if that isn't a feature you want to support
from react-infinite-scroll-component.
The same issue, need to scroll up.
from react-infinite-scroll-component.
yeah, it would be very useful feature
from react-infinite-scroll-component.
The bidirectional scroll is great. Any news on it ?
from react-infinite-scroll-component.
@ankeetmaini I'm interested in this too. :)
from react-infinite-scroll-component.
Same here, this component is almost perfect (will be after adding scroll up :D).
from react-infinite-scroll-component.
Also interested in such a feature.
from react-infinite-scroll-component.
Need this!
from react-infinite-scroll-component.
need this
from react-infinite-scroll-component.
Also was looking for this in a library when looking for a chat solution, bumping
from react-infinite-scroll-component.
Bump
from react-infinite-scroll-component.
Bump as well - that would be a great feature!
from react-infinite-scroll-component.
I need this :(
from react-infinite-scroll-component.
I need this for chat. Any update?
from react-infinite-scroll-component.
HEY! :( We need this update :(
from react-infinite-scroll-component.
same here :(
from react-infinite-scroll-component.
I need an upward scroll aswell please.
from react-infinite-scroll-component.
I'm gonna use another component just because this doesn't have an upward scroll
from react-infinite-scroll-component.
@JoseRivera12 and I made a pull request with this functionality. pullhttps://github.com//pull/207
from react-infinite-scroll-component.
from react-infinite-scroll-component.
I just merged 2 scroll components. hahahaha
from react-infinite-scroll-component.
Related Issues (20)
- how works dataLength ?, different result when is a static number HOT 1
- Scroll Both Direction (bidirectional infinite scroll) HOT 3
- Integration with Headless UI popover not working as expected.
- Block is appearing during scroll HOT 1
- Number 0 appears when finish loading message appears HOT 1
- `scrollableTarget` throws error `Type 'HTMLElement' is not assignable to type 'ReactNode'` in React 18 HOT 3
- Inverse does not work if you do not set a specific height
- Not calling next function on long screens HOT 13
- can not working in shadowDOM
- react-infinite-scroll-component is no longer maintained HOT 3
- The component is not working after a certain amount of items in the list
- Don't loading new content, if initial content height <= screen height HOT 4
- Please modify the npm docs and mention that for the dataLength prop we need to pass the actual length of the data that we are currently rendering.
- TypeError on latest Next.js HOT 4
- Bidirectional Infinite Scroll HOT 2
- Wrong calculation in isElementAtTop method causing percentage scrollThreshold to fail in inverse mode HOT 1
- Invalid Hook call on SetProgress -> 100%
- is this library supported horizontal scroll?
- 【IMPORT FOR EVERYONE】HOW TO FIX:Don't load new items when content height <= screen height
- Possibility to pass throttle time as props
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-infinite-scroll-component.