Coder Social home page Coder Social logo

No Scrolling about pure-drawer HOT 3 CLOSED

mac81 avatar mac81 commented on September 2, 2024
No Scrolling

from pure-drawer.

Comments (3)

mac81 avatar mac81 commented on September 2, 2024

If I understand you correctly you just need to change the .pure-drawer class from 'position:fixed' to 'position:absolute'. Then the drawer will scroll with the rest of the page.

If you just want the drawer to scroll while leaving the rest of the page just add 'overflow-y:auto' to the .pure-drawer class.

Do you use the sass or css version of pure-drawer? I will look into adding some settings which will let you control this in the next version.

from pure-drawer.

Tonybyte avatar Tonybyte commented on September 2, 2024

Oh, thanks for the tip. I have only tested so far but would use the css version until I learn more about sass. I am concerned about browser support and may wait for the mentioned js addition which I assume would provide fallback. However, this would be a mobile only menu for me, which may cover more users than I'm guessing since smart phones wouldn't have ancient browsers? I will have to look into that as well.

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Most smart phones have modern browsers that support the css used in this project. At least the more popular brands like android, ios and windows phone. I'm not sure when I will release a javascript enhanced version yet so maybe https://github.com/jakiestfu/Snap.js/ can be an alternative for you?

from pure-drawer.

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.