This website uses cookies to personalise ads and to analyse traffic ok
web design

jQuery custom content scroller



  • Jul 11, 2016
    • Updated plugin to version 3.1.5

      • Fixed issues #427, #416, #430.
      • Extended :mcsInSight plugin expression.
  • Jun 13, 2016
    • Updated plugin to version 3.1.4

      • Added new jQuery custom expression: ":mcsInSight".
      • Changed jQuery .load() functions for compatibility with jQuery version 3.0.
      • Increased mousewheel deltaFactor threshold which determines delta acceleration.
      • Optimized the function that checks the accessibility if iFrames.
      • Fixed issue #383.
      • Fixed issue regarding scrollTo method percentage value.
      • Fixed issue #391 (Firefox console error when dragging the scrollbar outside of window).
  • Nov 17, 2015
    • Updated plugin to version 3.1.3

      • Fixed issues regarding cross-domain iframes.
  • Nov 10, 2015
    • Updated plugin to version 3.1.2

      • snapAmount option can now be an array for setting different vertical and horizontal values (e.g. [y,x]).
      • Fixed issues regarding scrollbar dragging when element is within an iFrame.
      • New option added: extraDraggableSelectors.
      • Fixed issue #321.
      • Updated auto-update and primary scrolling functions to fix a bug regarding horizontal scrollbar resizing.
  • Oct 27, 2015
    • Updated plugin to version 3.1.1

      • New option added: documentTouchScroll.
      • Fixed bug ( regarding horizontal scrollbar dragging not triggering immediately.
      • Fixed a minor conflict between clicking the dragger rail while snapAmount option is used.
      • Fixed an issue regarding CSS max-height and media queries.
      • Optimized/fixed mouse-wheel scrolling on OSX (esp. using magic trackpad/mouse).
      • Included the latest version (3.1.13) of jquery-mousewheel plugin.
  • Oct 7, 2015
    • Updated plugin to version 3.1.0

      • Changed updateOnImageLoad option default value so it’s not triggered on vertical content.
      • Extended autoExpandHorizontalScroll option.
      • Updated/optimized auto-update function to prevent memory leak.
      • New callbacks added: onCreate, onBeforeUpdate.
      • Fixed issue #353 ( regarding Ms Edge and IE on touch devices.
      • Fixed issue regarding dragging text or elements out of the scrollable area (
      • Plugin is now better at handling CSS flexbox and elements with max-height using CSS calc().
  • Jun 9, 2015
    • Updated plugin to version 3.0.9

      • Pulled request #297 (fix Timers leaks –
      • Auto-detect OSX “natural” scrolling setting (where supported) and invert mouse-wheel automatically (for Safari browser).
      • New option added: autoUpdateTimeout.
      • Fixed issue #303 ( regarding mobile Google Chrome.
  • Mar 10, 2015
    • Updated plugin to version 3.0.8

      • Added Browserify support (
      • Fixed touch-swipe and keyboard scrolling for iframes (
  • Dec 29, 2014
    • Updated plugin to version 3.0.7

      • Fixed issue regarding scrolling by touch-swiping content in touch-enabled Windows devices.
      • Fixed bug regarding page scrolling when touch-swiping content with scrollbars in Android OS.
      • Setting alwaysShowScrollbar option to 1 will now keep scroll buttons visible.
      • Fixed issue
  • Nov 30, 2014
    • Updated plugin to version 3.0.6

      • Changed the timeout of binding the mouse-wheel event from 1000 to 100 milliseconds.
      • Fixed a minor issue regarding iframes in Firefox (
      • Change included mousewheel plugin version to 3.1.12.
      • Fixed/optimized various private functions.
      • New option added: scrollButtons:{ tabindex }.
      • New callbacks added: onUpdate, onImageLoad and onSelectorChange.
      • Added new custom jQuery expressions: ":mcsInView" and ":mcsOverflow".
      • Fixed scrolling while selecting content (
  • Oct 21, 2014
    • Updated plugin to version 3.0.5

      • Updated touch-swipe scrolling functionality. For example, the script will not prevent document scrolling when swiping vertically on elements with horizontal scrollbar or prevent zooming when 2 fingers are detected.
      • Updated the script to allow using browser’s “find on page” functionality.
      • Fixed issues regarding RequireJS.
      • New callback added: onInit (triggers when the scrollbars have initialized).
      • New option added: advanced:{ releaseDraggableSelectors }.
      • Updated script’s custom js tween function.
  • Sep 6, 2014
    • Updated plugin to version 3.0.4

      • Fixed issue of scrolling being too fast on OSX trackpads (issue:
      • Added mouse-wheel support for IE/Firefox over iframes that allow access.
      • Added option timeout to scrollTo method in order to easily change scroll-to default 60 milliseconds delay.
      • New callbacks added: onOverflowY, onOverflowX, onOverflowYNone and onOverflowXNone.
      • The plugin script will initialize mcs object without the need to trigger callbacks first.
  • Jul 29, 2014
    • Updated plugin to version 3.0.3

      • Added css and image files to main in bower.json file (
      • Added support for RequireJS (
      • Added an extra condition which checks if the scrollbar is ready to use mousewheel events (
  • May 30, 2014
    • Updated plugin to version 3.0.2

      • Fixed issue regarding scrolling over focused select element (
  • May 30, 2014
    • Updated plugin to version 3.0.1

      • Development script jquery.mCustomScrollbar.js appends jquery mousewheel plugin script in head tag (instead of body).
      • Removed jQuery object .selector property (issue: Object.selector will be used (if it exists) only when live option is true and liveSelector option is not set.
      • New option parameter added: liveSelector (specify a selector for the live option).
  • May 21, 2014
    • Updated plugin to version 3.0.0

      • Changed license to MIT
      • Re-written/optimized code.
      • Script adds scrollbars automatically on any element with class mCustomScrollbar.
      • Added object for detecting if custom scrollbar script is loaded: window.mCustomScrollbar.
      • Added object to allow setting plugin default options, e.g. $.mCustomScrollbar.defaults.scrollInertia=500;.
      • Changed set_width and set_height options to setWidth and setHeight.
      • Changed horizontalScroll option to axis.
      • New option parameter added: scrollbarPosition.
      • Dragger rail click scroll amount changed to match browser’s native scrollbar behavior.
      • Fixed problems with scroll on input focus (issue:
      • New option parameter added: deltaFactor.
      • Deprecated mouseWheelPixels, scrollButtons:{scrollSpeed}, advanced:{normalizeMouseWheelDelta} options.
      • Fixed issues and enhanced content touch-swipe scrolling function.
      • Fixed IE8 issue: content gets selected upon scroll
      • Added keyboard scrolling support.
      • Extended alwaysShowScrollbar option parameter.
      • New option parameters added: setTop and setLeft.
      • Extended scrollTo method position parameter.
      • Extended and fixed mcs variable (issue:
      • Callbacks won’t trigger when scrolling is 0 or 100%.
      • Removed window resize events and options.
      • Added support for RTL direction.
      • New option parameter added: alwaysTriggerOffsets.
      • New option parameter added: autoExpandScrollbar.
      • Added more ready-to-use themes.
      • New option parameter added: live.
      • New option parameter added: mouseWheel:{ invert }.
      • New option parameter added: advanced:{ updateOnSelectorChange }.
      • New option parameter added: advanced:{ updateOnImageLoad }.
      • Changed"mCS_trigger") to"mCS").trigger
  • May 19, 2014
    • Updated plugin to version 2.8.7

      • Increased mouse-wheel “auto” scrolling amount.
      • Fixed scrollbar dragging over iframes.
      • Fixed sub-pixels related issues.
  • May 14, 2014
    • Updated plugin to version 2.8.6

      • Fixed timeouts/intervals not clearing when scrollbar is destroyed (
      • Added extra condition preventing multiple plugin instantiations on a single element.
  • May 8, 2014
    • Updated plugin to version 2.8.5

      • Optimize scrolling when trackpad is used (issue:
      • scroll to element by js/jquery element object (issue:
      • Watch content size as well as container size (issue:
      • Change max-height function to take into consideration any padding applied to the DIV container (issue:
      • Fix window resize (issue:
      • Small bugfix and Mousewheel version update (issue:
      • Add ondragstart/ondragstop event handlers (issue:
  • Nov 19, 2013
  • May 9, 2013
    • Updated plugin to version 2.8.2

      • Plugin license changed from GPL to L-GPL.
      • Merged pull request which adds few extra options that allow a better scrollbar snapping to multiples of number of pixels.
  • Mar 13, 2013
    • Updated plugin to version 2.8.1

      • Plugin license changed from CC to GPL.
      • Fixed few minor bugs and issues.
  • Mar 7, 2013
    • Updated plugin to version 2.8

      • Removed GSAP dependencies. Plugin does not require GSAP JS TweenLite/CSSPlugin anymore.
      • Fixed CSS file for horizontal/vertical nested scrollbars.
      • New option parameter added: normalizeMouseWheelDelta (normalizes mouse-wheel delta to -1/1).
      • New option parameter added: contentTouchScroll (scrolling by touch-swipe content).
      • Script unbinds window resize event for destroyed scrollbars.
  • Feb 22, 2013
    • Fixed an issue with max-height/width.
  • Feb 20, 2013
    • Updated plugin to version 2.7

      • Removed jQuery UI dependency. Plugin does not require jQuery UI anymore.
      • Added support for jQuery version 1.9
      • Added support for Microsoft Windows based touch devices (via MSPointer events).
      • Added support for nested scrollbars (any amount, any level).
      • Custom scrollbars can now be applied directly on body tag.
      • Added GSAP JS TweenLite & CSSPlugin dependencies. All animations in the script have moved from jQuery $.animate to GSAP JS TweenLite. Scrolling is much smoother and performance is significantly better (at least twice the FPS). Callback functions also perform much better (with less code).
      • Dragger bar has now the same animation easing effect as content.
      • New method added: stop (stops current running scrolling animations).
      • New option parameter added: autoHideScrollbar (hides scrollbar when idle and/or mouse-out).
      • Mouse-wheel scrolls the document when a custom scrollbar has reached its scrolling limits (same behavior as browser native scrollbars).
      • Mouse-wheel and scrolling buttons default speed is set to "auto" (script auto-adjusts pixels scrolling amount according to content’s length).
      • Setting CSS max-height/max-width in percentages bug is fixed.
      • All callback functions return the following values: this (the current element), (content’s top position), mcs.draggerTop (scrollbar dragger’s top position), mcs.left (content’s left position), mcs.draggerLeft (scrollbar dragger’s top position), mcs.topPct (content vertical scrolling percentage), mcs.leftPct (content horizontal scrolling percentage).
      • Added scrollInertia option parameter to scrollTo method (set your own scrollInertia values for each scrollTo call).
      • Added a number of ready-to-use scrollbar themes. You can easily select a theme by setting the theme option parameter to the one you want.
      • Updated jquery.mCustomScrollbar.css with themes and some minor CSS changes for .mCSB_draggerContainer.
      • Other minor code optimizations and bug fixes.
  • Dec 19, 2012
    • Fixed code for elements with max-height/width.
  • Nov 28, 2012
    • Added content touch-scrolling support.
  • Nov 26, 2012
    • Updated plugin to version 2.3

      • Added touch support to custom scrollbar so it looks and functions the same on all devices (desktops, laptops, tablets, phones etc.) which support javascript touch events.
      • New methods added: disable (temporarily disables the scrollbar) and destroy (completely removes the scrollbar).
      • Auto-scrolling on element focus can now be enabled/disabled via option parameter.
      • Changed mousewheel and buttons scrolling to a fixed pixels amount (same behavior as native scrollbars).
      • Setting CSS max-height/max-width (without height/width) applies the custom scrollbar correctly when max-value is reached.
      • New callbacks added: onScrollStart, onTotalScrollBack and whileScrolling.
      • Changed few data objects names.
      • Other minor code optimizations.
  • Nov 7, 2012
    • Added top limit for scrollTo method.
  • Jul 27, 2012
    • Fixed an issue regarding content position updating. Updated plugin to version 2.1.
  • Jul 24, 2012
    • Added support for Android version 2.xx plus minor code optimizations.
  • Jul 19, 2012
    • Changed auto-scroll to selected/active anchors, only if they have a tabindex attribute set.
  • Jul 14, 2012
    • Updated plugin to version 2.0

      • Plugin script completely re-written to support multiple selector types, option parameters and methods.
      • Added user defined custom callback functions.
      • Added support for touch devices.
      • Fix for fast scrolling bug on Safari (OSX) is now included in the plugin script.
      • Added scroll-to functionality via “scrollTo” method.
      • Updated scroll buttons to scroll continuously or by number of pixels.
      • Added some advanced parameters for auto-updating scrollbar on content resize and auto-expanding container width on horizontal content blocks.
      • Added update method to update scrollbars manually when necessary.
      • Fixed scrolling while page is zoomed in or out in webkit browsers.
      • Selecting elements with the TAB key auto-scrolls content to the selected element position.
      • Included additional demos and examples in the plugin archive.
  • Dec 14, 2011
    • Updated demo and download archive with the updated mousewheel plugin (version 3.0.6), in order for mousewheel to work with jquery 1.7
  • Apr 13, 2011
    • Fixed a bug regarding pressing-dragging-releasing scroll buttons
  • Feb 23, 2011
    • Automatically setting content width for horizontal scrollers is no longer calculated via javascript.
      Instead of using jQuery .each() or for statements, the width is now set by adding an additional div (.horWrapper) that wraps content and by setting the display of .container div to inline, expanding its width automatically (check the updated css file for details)


Pages: 1 2 3 4


Post a comment

Comments pages: 1 79 80 81

  1. Jon Letovsky
    Posted on May 12, 2018 at 19:35 Permalink

    Can you add in widjet title for button Top Left Down and Right for scroll? WCAG 2.0 show issuse for availability.

    Second question: witch selecetor for this module. All widget have a jQuery selector type jQuery(‘:namespace-widgetname’), but i don’t know witch namespace for u

  2. Hossein
    Posted on April 5, 2018 at 15:00 Permalink

    Hi guys,
    How can i add horizontal scroll ?!
    regards, Hossein.

  3. ghazaland
    Posted on March 4, 2018 at 13:28 Permalink

    perfect article

  4. Robert
    Posted on March 3, 2018 at 17:53 Permalink

    Right side iframe content chopped off. Inspector (firebug) shows this is the culprit:

    What do I need to do? Can I modify the CSS?


    Best regards

    • Robert
      Posted on March 3, 2018 at 17:56 Permalink

      Forgot the code markers

      <div id="mCSB_1_container" class="mCSB_container" style="position: relative; top: -109px; left: 0px;" dir="ltr">

      How do you edit comments????

  5. طراحی سایت
    Posted on February 26, 2018 at 11:35 Permalink

    Is this plugin work on mobile device?

  6. Robert
    Posted on February 26, 2018 at 04:37 Permalink

    style.css causing lots of problems to override.

    For instance:

    text-decoration: none;
    color: #fff;

    Causing link text to disappear with mouse over.

    I ust took all the files and put them into website and started overriding
    many css parameters.

    Have I done something incorrectly here?

  7. Robet
    Posted on February 26, 2018 at 02:22 Permalink

    I have several buttons which load different info into the iframe. Some long some short. No scroll bars just drag or mouse wheel. Several issues:

    1. Having loaded a long doc and scrolled to the bottom, then clicking to load a short item, the shoirt item cannot bee seen until I scroll to the top. My code for loading the iframe is javascript. Can I just add the following to the code block?


    Or do these things have to be called in the scrollbar start up code or is you demo a stand a standalone??

    2. I thought the scrolling was only provided when the content was longer than the container. I load a short item
    and it still scrolls darg or mouse wheel???

    Thanks and best regards

    • Robert
      Posted on February 26, 2018 at 20:53 Permalink

      Item 1 resolved. Why do examples show .content??

      Item 2 still open:

      2. I thought the scrolling was only provided when the content was longer than the container. I load a short item
      and it still scrolls darg or mouse wheel???

  8. Robert
    Posted on February 24, 2018 at 17:47 Permalink

    How can I I allow scrolling but w/o the scroll bars?


    Best regards

    • Robert
      Posted on February 26, 2018 at 01:59 Permalink

      Override .content :
      .content{ overflow: hidden;

      oveflow hidden rather than scroll

  9. Sammy95
    Posted on February 6, 2018 at 16:22 Permalink

    mCustomScrollbar don’t catch wheel event if mouse pointer locate over iframe (any social buttons). In this case scrolling base browser window, not my block.
    Any ideas for workarround?

  10. Guilherme
    Posted on February 1, 2018 at 20:39 Permalink

    I have a problem scrolling the content when I insert on the container CSS transition.
    A sidebar menu is using the custom scroll and it can be minized, so i put this code to do smoothly

    .left-container * { -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease; }

    problem is that i have a container, and when transition and mCustomScroller is combined the scroll messup

    • Guilherme
      Posted on February 1, 2018 at 21:32 Permalink

      I changed my CSS to apply the transition only on the elements that have a change and work, just ignore the resquest…

  11. kxjl
    Posted on January 26, 2018 at 10:00 Permalink

    that is very cool!
    well done!

    this is my new site my site

  12. Sergey
    Posted on January 16, 2018 at 13:22 Permalink

    Thanks for plugin ! He help me for many projects.

  13. boys
    Posted on December 28, 2017 at 12:10 Permalink

    requirejs how use

  14. Siva
    Posted on December 27, 2017 at 08:49 Permalink

    how can i use swipe in mcustom scrollbar example please

    • Siva
      Posted on December 27, 2017 at 08:50 Permalink

      how can i use swipe in mcustom scrollbar example please in desktop / non touch device

      • Mike
        Posted on March 16, 2018 at 18:59 Permalink

        Did you ever figure this out? I’m trying to do the same thing, allow content to be dragged with mouse and scroll. Particularly when you have a horizontal list of image thumbnails.

  15. backnext
    Posted on December 23, 2017 at 19:20 Permalink

    I use the 3d-thick-dark theme for people with visual problems. I want the scrollbar really thick. I know I have to change “width” and “left” of .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar But I don’t find what else to change. Any idea?

  16. Bilja
    Posted on December 8, 2017 at 12:35 Permalink

    Can I have a horizontal scroller that is moved from left to right, not right to left.
    Better than, can I have two scroller images section, with one scrollbar in the middle for both section.
    Top scroller section to move from right to left, and bottom scroller section to move from left to right on same scrollbar move.

    Thank you

  17. Keyser
    Posted on December 4, 2017 at 14:36 Permalink

    Thank to share with us your nice plugin veru usefull.
    Im searching for a callback to check if all mCustomScrollbar are ready then do something.
    Any idea ?

    Thank to everyone

  18. rizwan
    Posted on November 22, 2017 at 12:26 Permalink

    scrollbar not working in IE-Edge latest browser any solution how to overcome this problem??

    • lmb
      Posted on December 20, 2017 at 10:46 Permalink

      Same problem here on edge, can scroll down, but on scroll up keep going down …
      Works perfectly fine on chrome & firefox.
      Any fix soon ?

  19. Cyril
    Posted on November 16, 2017 at 19:54 Permalink


    I’ve have an issue when i use this plugin with jquery sortable on scrolling up and down during sort.
    With natural scrollbar no problem. But when the plugin is in use, the scroll doesn’t work.

    Any idea ?

  20. pipes-manysman
    Posted on November 15, 2017 at 10:42 Permalink

    I’m using your jQuery Scrollbar and it works very well

  21. Arun
    Posted on November 8, 2017 at 22:01 Permalink


    I am loading a div’s dynamically onclick of a button inside the scroll content (horizontal scroll). But if I have content above the scroll div and then I append the div, whole page jumps a little bit to top.Kind off annoying.

    Any help?

    Same issue could be recreated in our “max-width_example” too. If we add some dummy text on top of the scroll parent div and then click add image link, the page jumps slightly to top. Sorry if the issue is already been asked in this forum.

  22. Andrea
    Posted on October 28, 2017 at 17:11 Permalink

    Hi guys, can you tell me why when I click on a input text of a form the site returns on the first page? Sorry for my bad english

    • Keyser
      Posted on December 4, 2017 at 14:39 Permalink

      Just add preventDeault function in your event like :

      $('body').click(function(event) { event.preventDefault(); // do what you want now });

  23. Julien
    Posted on October 6, 2017 at 11:47 Permalink

    For those who came into the same issue (everything works except one finger scrolling on Mozilla Firefox 45) this is due to Mozilla configuration. Go into about:config then setting dom.w3c_pointer_events.enabled to true did the trick.


Comments pages: 1 79 80 81

Post a comment

Your e-mail is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
You can write or copy/paste code directly in your comment using the <code> tag:
<code>code here...</code>
You may also use the data-lang attribute to determine the code language like so:
<code data-lang-html>, <code data-lang-css>, <code data-lang-js> and <code data-lang-php>