simple-scrollbar
simple-scrollbar copied to clipboard
Very simple and lightweight vanilla javascript library for creating a custom scrollbar cross-browser.
I am using the simple-scrollbar library on a couple sites and it works everywhere nicely except on iOS 13.5.1 (ipad). It does work fine on iOS 15+ (iphone). I read...
How should I tackle this? It breaks my JS code. 
I can't seam to find a way to get this module to add horizontal bars instead of vertical ones. This feature would make it way more useful as the scrollbars...
How can I use this with something like a chat component, where content are added after init?
move calculation of scrollRatio inside of requestAnimationFrame to avoid triggering layout/reflows on each scroll event.
Added this in the method "ss" : 1. After "this.direction = ..." `var initScrollTop = this.target.scrollTop;` 2. Before "dragDealer(this.bar, this);" `this.el.scrollTop = initScrollTop;`
Hello, I fixed a small issue in the method "moveBar". ` var barHeight = Math.max(_this.scrollRatio * 100, 10); _this.bar.style.cssText = 'height:' + barHeight + '%; top:' + Math.min((_this.el.scrollTop / totalHeight...
My dynamically resized page is having issues with the scrollbars, and they seem to only update moveBar when I hover over the scrollbar section.
* Fixes a nasty issue where the scrollbar wouldn't appear on first render due to `display: none` giving it `clientWidth` of 0, and requiring user to `mouseenter` the container for...