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 (/jquery-custom-content-scroller/comment-page-69/#comment-20179) 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 (/jquery-custom-content-scroller/comment-page-69/#comment-20145).
      • 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 81 82 83

  1. Farshad
    Posted on January 4, 2022 at 20:25 Permalink

    I can not change the default to the horizontal axis

    $(“#metro-box”).mCustomScrollbar({axis: “x” });

    would you help me plz

    • Greg Young
      Posted on January 10, 2022 at 01:50 Permalink

      use a class, not a div 😉

  2. Borsa
    Posted on December 28, 2021 at 05:35 Permalink

    How can I decrease the width of the background of the scroll bar.

  3. Pierre Att
    Posted on December 20, 2021 at 18:58 Permalink

    Suppose you scroll over a set of div, each one having an id.

    Is there’s a way to have a trigger enabling to run a function each time one of the div is displayed whatever the scrolling is down or top ?

    Thanks for quick directions,


  4. Aman
    Posted on December 2, 2021 at 16:03 Permalink

    This is really amazing post, thanks for sharing.

  5. Samantha
    Posted on August 18, 2021 at 22:13 Permalink

    The plug in seems not working very well with newer Jquery version like JQuery 3.5.1 .

    Is there any chance you can fix that.

    Big thanks

  6. shahil
    Posted on April 26, 2021 at 15:39 Permalink

    is it possible to scroll the content with mouse drag ?

  7. sagar
    Posted on February 4, 2021 at 08:07 Permalink

    Can you please make it compatible with the jQuery Latest version.. There are many themes and plugins which uses your custom scrollbar.. I would request you to do that..

    I saw jQuery.fn.bind() is deprecated in the plugin of yours…

    • Rosáline
      Posted on May 9, 2021 at 20:12 Permalink

      Agreed! The scroll on the latest jQuery version is so janky

  8. imko
    Posted on January 6, 2021 at 19:21 Permalink

    If you have problems displaying the horizontal slider on mobile devices set parameter “autoHideScrollbar” to “false”

  9. W.
    Posted on September 28, 2020 at 20:58 Permalink

    Hi there is a problem on new safari in Iphones, if you have text only container its work well, but if you have clickable elements, when you hit that element(e.g. a href) it stop scrolling and start hover that elemen and you cant scroll further.
    best regards. W.

  10. User
    Posted on July 30, 2020 at 22:39 Permalink

    contentTouchScroll is not working while swiping left and right in mobile. Kindly provide me any solution for this.
    Thank you

  11. Rebeka
    Posted on June 22, 2020 at 12:02 Permalink

    Download free all source WordPress, Plugin, Html templates, Psd…

  12. Rebeka
    Posted on June 22, 2020 at 11:57 Permalink

    Download free all source WordPress, Plugin, Html templates, Psd… at:

  13. Stefanie
    Posted on June 17, 2020 at 10:48 Permalink

    I have made the content of my scroller responsive, okay. But how can i adjust the “snapAmount” to the different values of height?

    Thank you for help.

  14. Web Inmotion
    Posted on May 29, 2020 at 08:43 Permalink


    We are using mCustomScrollbar and it’s working fine.

    while working with this… iFrame content on website gets removed.

    Can you suggest suitable solution for this ?
    Thank you.

  15. sergey
    Posted on May 9, 2020 at 12:33 Permalink

    error with jquery v3.5.1

  16. Carl
    Posted on April 21, 2020 at 06:21 Permalink

    trying to scrollTo a position in modal-body(fixed heigth and overflow-y:auto) from the main page when open the modal. I get the proper #id and listen for when its open
    $("#Modal").on('', function(){ $('#content').mCustomScrollbar('scrollTo',"#id"); });
    and nothing happens
    Any suggestions

  17. Antoine
    Posted on April 17, 2020 at 00:08 Permalink

    is there a way to get mouseWheel back on body/html when onTotalScroll ?
    I tried, but I can’t figure how…
    Best regards,

  18. Guest
    Posted on January 23, 2020 at 11:52 Permalink

    I am using Malihu scrollbar in my application but I am not able to use the scrollbar in mobile devices. please reply with solution

  19. Ponnarasi
    Posted on January 2, 2020 at 14:18 Permalink

    I have implemented jQuery UI sortable in my project. In my implementation I have large number of records which around 10,000 at an average. I store the index of each record in my database.

    The implementation is working fine but due to mCustomScrollbar, the sorting feature is very jerky. The scrolling do not work properly when I reach last visible record.

  20. Oguzhan
    Posted on December 25, 2019 at 08:34 Permalink

    Hello Malihu,

    I’m asking you to help me with something I’m stuck with.

    I have prepared a modal plugin.
    When it reaches the maximum height, mCustomScrollbar is activated.
    It works super.

    Only I have Selectize on my form pages.
    You cannot scroll through the Selectize menu with the mouse.
    The mouse works for mCustomScrollbar.

    I used the following parameter to cancel scrolling while on the Selectize element.
    But it didn’t work.
    The .selectize-control element is the top layer.

    Is there anything wrong?

    articlectnscroll.mCustomScrollbar({ theme: "minimal-dark", mouseWheel: { disableOver: ['.selectize-control', '.selectize-control *'] } });

    (Sorry, I used google translate for english)

    • Poonam
      Posted on January 18, 2020 at 08:43 Permalink


      Did you got any solution for your problem.Recently I am facing same problem

  21. Murat
    Posted on December 3, 2019 at 05:15 Permalink

    is this project alive?

  22. Elle
    Posted on November 14, 2019 at 06:39 Permalink

    Is there a way to make it work along with NodeJS and EJS? It seems to be buggy and won’t scroll properly

  23. beni
    Posted on November 11, 2019 at 16:40 Permalink

    How can i use mCustomScrollbar for browser default scrollbar?

    • beni
      Posted on November 11, 2019 at 16:43 Permalink

      I used:
      $("body").mCustomScrollbar({ theme: "minimal", scrollButtons: { enable: true } });

      but dose not work.

  24. Bhavesh Vengurlekar
    Posted on October 4, 2019 at 10:20 Permalink

    I have to make the 1st section to sticky to top when I perform wheelscroll and also when I click on the link to go to specific section.

  25. Dave
    Posted on September 20, 2019 at 16:05 Permalink

    Is there a Tutorial or video to use jQuery custom content scroller with the Elementor Page Builder – this is brilliant and exactly what I need for my site!

  26. Marc
    Posted on September 19, 2019 at 16:11 Permalink

    I have an images slider inside the mCustomScrollbar and in mobile devices I can not swipe left this slider, because mCustomScroll prevents it. Is it possible to make Stop Propagation? Thanks!

  27. Marth
    Posted on August 13, 2019 at 02:39 Permalink

    Is there a way within the plugin to hide the scrollbar but leave the arrow buttons for scrolling?

  28. Peter
    Posted on August 10, 2019 at 16:46 Permalink

    How can I User mCustomScrollbar and AutoComplete

    /* scroll via keyboard */
    var first=$(“.ui-autocomplete li:first”);
    var el=$(“.ui-state-focus”).parent();
    if(!“:mcsInView”) && !“:hover”)){

    This code not working

  29. codepopular
    Posted on July 11, 2019 at 23:11 Permalink

    Download Free html Template

  30. Yvan COYAUD
    Posted on June 17, 2019 at 01:15 Permalink

    How can I decrease the width of the background of the scroll bar.
    I’m talking about reducing the size of the scroll bar, which is too far from the content to scroll.
    Thank you for your help



Comments pages: 1 81 82 83

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>