OverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.

MIT License

Downloads
2.6M
Stars
3.8K
Committers
15

Bot releases are visible (Hide)

OverlayScrollbars - OverlayScrollbars Version 1.4.1

Published by KingSora over 6 years ago

Fixed #18

The calculated overflow Amount is now rounded to two decimals to prevent bugs in Internet Explorer and Edge.

Async image loads are now detected automatically. (beta)

The scroll method has been improved:
If you pass a element object with additional settings, the "block" property in the settings accepts now two new values: "center" and "nearest". It basically has now the exactly same capabilities as the scrollIntoView function.

OverlayScrollbars - OverlayScrollbars Version 1.4.0

Published by KingSora over 6 years ago

Implemented #13
Fixed a bug where the plugin calculated incorrect scrollHeight if it was initialized to the body.
Fixed a bug where the plugin calculated incorrect scrollHeight if the host-element has auto-height.

OverlayScrollbars - OverlayScrollbars Version 1.3.0

Published by KingSora over 6 years ago

Fixed #12.
Fixed a bug where scroll().x.handleLengthRatio or scroll().y.handleLengthRatio was sometimes NaN instead of 0.
Fixed a bug where the plugin wasn't updated properly if the DOM of os-content was changed.
Fixed a bug where callbacks got fired, but the initialization wasn't complete.
Fixed a bug where scroll-size wasn't calculated properly because of margin. (I detected this bug only in Firefox and created a issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1439305)
To detect this bug, the globals have a new property with the name restrictedMeasuring which is a boolean.

Increased performance if plugin is initialized to auto-sized elements.

I've added a dynamic content demo on the demo page.

OverlayScrollbars - OverlayScrollbars Version 1.2.3

Published by KingSora over 6 years ago

Fixed #8
Fixed bug in the jquery independent Version where queued scroll animations didn't started as intended.
The "screen" object is now adressed with window.screen instead of screen

OverlayScrollbars - OverlayScrollbars Version 1.2.2

Published by KingSora over 6 years ago

Fixed #7
This update only affects the non-jQuery version.

OverlayScrollbars - OverlayScrollbars Version 1.2.1

Published by KingSora almost 7 years ago

Fixed #6 and two other bugs.
Improved auto-height and mutation observer behavior.

OverlayScrollbars - OverlayScrollbars Version 1.2.0

Published by KingSora almost 7 years ago

The plugin has now two versions:

  • A default version without any dependencies: OverlayScrollbars.js
  • A jQuery version with jQuery as dependency: jquery.overlayScrollbars.js

The instance.scroll() method supports now special easing per axis.
The global methods was reworked.

Package Rankings
Top 0.88% on Npmjs.org
Top 12.06% on Bower.io
Top 6.75% on Proxy.golang.org
Top 16.26% on Repo1.maven.org
Badges
Extracted from project README
Downloads Version License Code Coverage Max. Bundle Size