Code Monkey home page Code Monkey logo

Comments (2)

manufont avatar manufont commented on July 17, 2024

I don't think it's an issue with the plugin itself. The plugin shouldn't interfere with your page layout.
You can still use the onChange method, and execute document.body.style.overflow = "hidden" when the bottom sheet is open.

If your website is a responsive web application, one great solution would be to make your page layout more flexbox-like : Fix html and body to height: 100%, and use overflow: auto div for scrollable content. In this case, the plugin works great as it's not part of the overflowing content.
I made a static example here.

from react-swipeable-bottom-sheet.

gustavopch avatar gustavopch commented on July 17, 2024

@manufont You're right. There's also the case when the bottom sheet could be higher than the screen height but not covering the whole screen width; then my conclusion of "no interaction with the main page is expected" would be false. Closing this.

from react-swipeable-bottom-sheet.

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.