Giter Site home page Giter Site logo

Comments (5)

Mazyod avatar Mazyod commented on May 22, 2024

@koenbud Off the top of my head, we can check in the scrollViewDidScroll: method if the scrollView is not dragging/tracking nor decelerating, that's a probably a programatic offset.

The problem with this, tho, is when you tap on the status bar. I would assume that is programatic from within the framework, and we do want to update the TLYShyNavBar..

Your solutions might be the only way, to add a freeze state... Or, even better, can you please try setting the contraction/expansion resistance to INFINITY? That should "freeze" the ShyNavBar. If that works, you can submit a PR with a new property called freeze that caches the resistance values in internal variables, and restores them when freeze is set to false. Just probably make sure if the user calls shyNavBarManager.freeze = YES twice, you don't cache the INFINITY value.

Of course, general code style conformation, docs, and testing is highly appreciated!

Let me know if I can help.

from tlyshynavbar.

koenbud avatar koenbud commented on May 22, 2024

Awesome, thanks for the quick reply. I'll try to take a look in the next couple of days.

from tlyshynavbar.

nolanw avatar nolanw commented on May 22, 2024

@Mazyod the status bar tap comes to the delegate via -scrollViewShouldScrollToTop: and -scrollViewDidScrollToTop: so it shouldn't be an issue to temporarily freeze the ShyNavBar. (Just make sure to take the subsequent scrollview delegate's response to -...ShouldScrollToTop: into account first!)

from tlyshynavbar.

Mazyod avatar Mazyod commented on May 22, 2024

@nolanw Interesting point, thanks! Yup, that solves the tapping on statusbar issue.
I think I'll give it a shot!

from tlyshynavbar.

Mazyod avatar Mazyod commented on May 22, 2024

I think this was resolved by introducing the disabled property on the manager.

from tlyshynavbar.

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.