Giter Site home page Giter Site logo

Comments (28)

AndrewTkachenko avatar AndrewTkachenko commented on May 18, 2024 27

A lot of people need "scroll up" function :) Please, don't ignore it. Thanks

from react-infinite-scroll-component.

ankeetmaini avatar ankeetmaini commented on May 18, 2024 3

This feature has landed in the latest version :)

from react-infinite-scroll-component.

ankeetmaini avatar ankeetmaini commented on May 18, 2024

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.

WilliamStephens avatar WilliamStephens commented on May 18, 2024

@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.

ankeetmaini avatar ankeetmaini commented on May 18, 2024

@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.

WilliamStephens avatar WilliamStephens commented on May 18, 2024

@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.

ankeetmaini avatar ankeetmaini commented on May 18, 2024

from react-infinite-scroll-component.

WilliamStephens avatar WilliamStephens commented on May 18, 2024

@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.

VovaTereschenko avatar VovaTereschenko commented on May 18, 2024

The same issue, need to scroll up.

from react-infinite-scroll-component.

hyzhak avatar hyzhak commented on May 18, 2024

yeah, it would be very useful feature

from react-infinite-scroll-component.

mimiqkz avatar mimiqkz commented on May 18, 2024

The bidirectional scroll is great. Any news on it ?

from react-infinite-scroll-component.

wootwoot1234 avatar wootwoot1234 commented on May 18, 2024

@ankeetmaini I'm interested in this too. :)

from react-infinite-scroll-component.

 avatar commented on May 18, 2024

Same here, this component is almost perfect (will be after adding scroll up :D).

from react-infinite-scroll-component.

sulaiman1073 avatar sulaiman1073 commented on May 18, 2024

Also interested in such a feature.

from react-infinite-scroll-component.

vemundeldegard avatar vemundeldegard commented on May 18, 2024

Need this!

from react-infinite-scroll-component.

CryceTruly avatar CryceTruly commented on May 18, 2024

need this

from react-infinite-scroll-component.

douglasrcjames avatar douglasrcjames commented on May 18, 2024

Also was looking for this in a library when looking for a chat solution, bumping

from react-infinite-scroll-component.

baeteja avatar baeteja commented on May 18, 2024

Bump

from react-infinite-scroll-component.

Endeauvirr avatar Endeauvirr commented on May 18, 2024

Bump as well - that would be a great feature!

from react-infinite-scroll-component.

roxdavirox avatar roxdavirox commented on May 18, 2024

I need this :(

from react-infinite-scroll-component.

kpc0511 avatar kpc0511 commented on May 18, 2024

I need this for chat. Any update?

from react-infinite-scroll-component.

jeanmayorga avatar jeanmayorga commented on May 18, 2024

HEY! :( We need this update :(

from react-infinite-scroll-component.

aldo1400 avatar aldo1400 commented on May 18, 2024

same here :(

from react-infinite-scroll-component.

LombaxTech avatar LombaxTech commented on May 18, 2024

I need an upward scroll aswell please.

from react-infinite-scroll-component.

ilitvinovich avatar ilitvinovich commented on May 18, 2024

I'm gonna use another component just because this doesn't have an upward scroll

from react-infinite-scroll-component.

osmarpb97 avatar osmarpb97 commented on May 18, 2024

@JoseRivera12 and I made a pull request with this functionality. pullhttps://github.com//pull/207

from react-infinite-scroll-component.

ankeetmaini avatar ankeetmaini commented on May 18, 2024

from react-infinite-scroll-component.

roxdavirox avatar roxdavirox commented on May 18, 2024

I just merged 2 scroll components. hahahaha

from react-infinite-scroll-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.