Git Product home page Git Product logo

Comments (3)

ahmedrad avatar ahmedrad commented on July 19, 2024

Hi @timersys,

You'll have to not use my built in no_scroll feature, just set it to false when you're initializing sliiide. For example your settings object would look like this.

var settings = {
            toggle: "#sliiider-toggle", 
            exit_selector: ".slider-exit",
            animation_duration: "0.5s",
            place: "left",
            animation_curve: "cubic-bezier(0.54, 0.01, 0.57, 1.03)", 
            body_slide: true, 
            no_scroll: fales
                };

that way both your website and menu would be able to scroll, if you would still like your main website to not scroll and your menu to scroll then I suggest using a more advanced plugin for controlling disabling the scroll. this is a good plugin to do that https://github.com/ultrapasty/jquery-disablescroll
you can disable scroll on all children of body except the sliiide menu. Personally, after the last update the position of the menu is fixed while scrolling on almost all the browsers I tested so I'd just leave the scrolling enabled on the website and the menu. Hope this helps!

from sliiide.

timersys avatar timersys commented on July 19, 2024

That's what I tried first but that doesn't work because the height of the menu its calculated by your script which makes it as height as the window vieport rather content.
I ended modifying the script to achieve what I wanted but it's very specific to my site so I won't send a pull request, but would be a nice feature ot consider.
Thanks!

from sliiide.

ahmedrad avatar ahmedrad commented on July 19, 2024

I'm not sure what the feature would be, The plugin stretches the menu to the viewport height if it's coming in from the side or stretches the width if it's coming in from the top or bottom. Making the height of the menu longer than the viewport wouldn't create the best look or experience. I thought you'd just be looking to add a css property to the menu of overflow-y: scroll; .. wouldn't that solve the problem of larger content than the menu height and have users be able to scroll through it?

from sliiide.

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.