Comments (3)
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.
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.
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)
- package.json
- Stay open HOT 7
- Caching HOT 2
- [Idea] Attach toggle icon to sidebar HOT 1
- Create events (OnSlide, OnSlideFinished) HOT 2
- License info HOT 2
- Close the menu HOT 1
- Double Click to initiate slider HOT 1
- Scroll inside menu
- close navigation
- Slide behind window HOT 1
- preventDefault passive
- shadow should also be able to handle toggle HOT 2
- no_scroll: true not working on mobile HOT 8
- Toggle image by click or swipe HOT 8
- Windows Phone 8 / IE10 HOT 2
- overflow: scroll; not effecting the menu HOT 1
- effect where the menu appears on the website ? HOT 1
- Html Overflow-X: Hidden Issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sliiide.