Comments (4)
Today I ran into the same situation and fixed it. You can find my fork here: https://github.com/9livesdevelopment/jQuery-slimScroll
I also fixed an issue with checking if it's already bound. It used hardcoded values so when you override the defaults the check wouldn't work. Now it contains this code
//ensure we are not binding it again
if (me.parent().hasClass(o.wrapperClass))
Anyway,
My solution for the issue was to introduce a special class .slimScrollPriority. This is used to set a global variable called priorityScrollingActive to true. You can find it top of the js file.
To bind them this is what I do:
$('.slimScroll').slimscroll({
color: '#000',
size: '8px',
width: '100%',
height: '100%'
});
$('.slimScrollPriority').slimscroll({
color: '#000',
size: '8px',
width: '100%',
height: '100%',
wrapperClass: 'slimScrollDivPriority'
});
It works very smooth for me. If you have any questions let me know and I'll see what I can do to help.
Cheers,
René
9Lives Development.
from jquery-slimscroll.
René, Is it possible to nest/embed multiple vertical scrolling areas within a single horizontal scrolling area? Do you have an example of this?
from jquery-slimscroll.
I think I've got a solution, by copying your slimScrollPriority method over to the slimScrollHorizontal.js, however, it only works when alwaysVisble = false
from jquery-slimscroll.
I am not sure if it will work with my "hack".
Tbh it isn't the most beautiful solution I've used, but it does the job for our project.
A better solution would be for the slimscroll object to have children and keep track if children are scrolling. Actually block parents :)
Unfortunately I don't have to the time to update the library at the moment :(
from jquery-slimscroll.
Related Issues (20)
- archive project / search for maintainers
- Need to update after adding elements to section.
- t is not defined
- AllowPageScroll Not Work
- FYI Your website is broken
- when i inspect the browser slimScrollDiv is working otherwise it is not visible HOT 2
- Windows scroll inside child element(combobox) does not work with SlimScroll in Parent div
- Does not work in touch devices
- It's hard to use horizontal and vertical scrolls - page starts glitching and freezing
- [Violation] output in chrome console HOT 2
- Scroll child div also scrolls the window HOT 2
- slimscoll event is not capturing bottom event HOT 1
- How to capture scroll events
- Auto scroll at top after expanding menu
- Chrome, Unable to preventDefault inside passive event listener due to target being treated as passive, error HOT 2
- Abandoned Project.
- Sidebar issue HOT 1
- Solution for "[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive." HOT 1
- SlimScroll creating issue in scrolling inner dropdowns in a form
- allowPageScroll is not working with latest "jQuery Core 3.7.0"
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 jquery-slimscroll.