Releases: Grsmto/simplebar
Releases · Grsmto/simplebar
2.4.4
2.4.3
v2.4.0
- SimpleBar doesn't disable itself automatically on mobile anymore. This behaviour has been removed for multiple reasons:
- it was confusing for new users, they were wondering why SimpleBar "wasn't working on mobile" until they read the doc
- it was making the codebase more complex to maintain
- this shouldn't be SimpleBar responsibility to disable itself. This can be easily done by the end user using a simple test:
if (scrollbarWidth() === 0)
and instantiate SimpleBar or not based on that (for this you can use the same package SimpleBar uses https://www.npmjs.com/package/scrollbarwidth)
- Performance optimisation: some values that were heavy to read were calculated on each scroll event, they are now cached and only calculated when content size changes
- scrollbar min-width now consistent with iOS default scrollbar
Next steps:
- Unit tests
- Separate module in 2: with/without mutationObservers
- Use CSS in JS so user doesn't have to import css separately (one less step to get running!)
v2.3.2
v2.3.0
- Default scrollbar now looks more like the native iOS scrollbar
- Fix: Manual instantiation not working (#72)
- Fix:
wrapContent
option not working (#64) - Fix: removeObserver() not working (#69)
- Fix:
forceEnabled
not working properly (especially when scrolling on both axis X and Y) (#71) - Improve demo page
I started writing unit tests, that was getting urgent! It should be available soon.
v2.2.2
v2.2.1
v2.1.0
v2.0.3
- Fix: Scrollbar size was not recalculated properly on the Y axis (#49)
- Fix: Scrollbar size calculation was wrong when reaching the minimum width/height and was breaking the layout in certain situations (#46)
- Fix: Options were just not working properly :)
- Feature: Scrollbar minimum size is now configurable with an option (
data-simplebar-scrollbar-min-size' on the element or via options object
scrollbarMinSize`) (#44)