GithubHelp home page GithubHelp logo

Comments (3)

KyleAMathews avatar KyleAMathews commented on June 15, 2024

Thanks for the bug report! Do you think you'd like to take a stab at
creating a PR with a failing test case? And the fix too of course if you'd
like ;-)
On Mon, Nov 30, 2015 at 6:52 PM Ali Hmer [email protected] wrote:

So to reproduce this. You need to page down once and then page up.
I did some debugging and I think this is the part that is responsible for
that

if currentScrollY <= 0 and
state.state isnt "unfixed"
return {
action: "unfix"
scrollDirection: scrollDirection
distanceScrolled: distanceScrolled
}

currentScrollY in this case is 0 and the whole condition is true and so
the action would be unfixed. Not sure if there should be another action for
bin in this case. But if you modified the condition to

if currentScrollY = 0 and
state.state isnt "unfixed"
return {
action: "unfix"
scrollDirection: scrollDirection
distanceScrolled: distanceScrolled
}

this won't satisfy the condition and it will fire the pin event


Reply to this email directly or view it on GitHub
#41.

from react-headroom.

kikoanis avatar kikoanis commented on June 15, 2024

Sure. Will try to submit a PR, may be by the end of the day

from react-headroom.

KyleAMathews avatar KyleAMathews commented on June 15, 2024

Published 1.7.3

from react-headroom.

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.