Code Monkey home page Code Monkey logo

Comments (5)

piermariacosina avatar piermariacosina commented on June 4, 2024

I'm trying the same thing for the reason that most of the plugins uses some div and a container to do the custom scrollbar it is not compatible with them

from stroll.js.

blackthorns avatar blackthorns commented on June 4, 2024

Hi guys, did you finally manage to do that ? I tried to set up the same with mCustomScrollbar but it's not working...
Thanks

from stroll.js.

SantzDesign avatar SantzDesign commented on June 4, 2024

mCustomScrollbar is a piece of crap. Use this, I tested every effect and it worked perfectly: https://github.com/noraesae/perfect-scrollbar

from stroll.js.

PayBas avatar PayBas commented on June 4, 2024

mCustomScrollbar is fine. Took me a while to figure out how to get it to work.

  1. Make sure stroll.js is initialized on the

      element BEFORE you call the mCustomScrollbar script.

    • Add this very haxy code before:

// Quit if nothing changed
        if(this.element.children[0].tagName == "DIV") {
            var mCSB = this.element.children[0].children[0];
            var scrollTop = mCSB.pageYOffset || Math.abs(mCSB.offsetTop),
                scrollBottom = scrollTop + this.listHeight;
        };
  1. Change your
      CSS to:
overflow: hidden;

from stroll.js.

tomasdev avatar tomasdev commented on June 4, 2024

You can always use iScroll guys.

from stroll.js.

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.