Coder Social home page Coder Social logo

Comments (4)

 avatar commented on August 27, 2024

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.

nsitu avatar nsitu commented on August 27, 2024

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.

nsitu avatar nsitu commented on August 27, 2024

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.

 avatar commented on August 27, 2024

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)

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.