Giter Site home page Giter Site logo

Comments (6)

zachleat avatar zachleat commented on May 27, 2024

Are you sure you want to take this approach? It seems like you’re going to run into a lot of problems on mobile devices with overflow.

Regardless, I don’t think this is a use case we’re likely to want to support in the core library—sorry! If you’d like to discuss further please feel free to do so, but I’m going to close this ticket for now. Thanks!

from fixed-sticky.

sazemaster avatar sazemaster commented on May 27, 2024

Hi Zach, thanks for the answer. I am now curious regarding the problems with overflow you are mentioning, do you have any link to show?

It's a pity though because the native implementation of position: sticky; allows this use case and that's why I came here in the first place thiking that your polyfill had a bug :)

from fixed-sticky.

zachleat avatar zachleat commented on May 27, 2024

Hmm, maybe I’m misunderstanding your use case? Can you whip up a quick demo on jsbin or something so I can see what you’re referencing?

from fixed-sticky.

sazemaster avatar sazemaster commented on May 27, 2024

Sure: http://jsfiddle.net/g4sRY/13/

Nav and content are fixed. I need to scroll the content, not the body.

Try it in Safari, you'll see it works!

from fixed-sticky.

zachleat avatar zachleat commented on May 27, 2024

Ah, so I did a bit more research on this for #16 and I don’t think we’ll be polyfilling this case.

As a workaround, use position: fixed for your NAVIGATION header and use the normal page scrolling for your address book (remove the overflow). I think this will save you some headache later on anyway.

Good luck!

from fixed-sticky.

OliverJAsh avatar OliverJAsh commented on May 27, 2024

Do you know if any polyfills/fork of this polyfill implement this?

from fixed-sticky.

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.