Releases: KingSora/OverlayScrollbars
Releases · KingSora/OverlayScrollbars
Release list
OverlayScrollbars Version 1.10.2
OverlayScrollbars Version 1.10.0
Improvements:
- The
hostelement of atextareaelement now applies thefocusclass if thetextareaget focused. - Improved event handling & management (
passive&preventDefaulte.g.non-passiveevents) - The plugin now recognizes already existing DOM (helpful in component wrappers & PHP / SSR Sites)
React:
- Fixed a bug where elements which were generated through iteration of a list wasn't applied correctly.
- Is using now existing DOM, so React generates the DOM, not the plugin.
Vue:
- Fixed a bug where it wasn't possible to use
v-foras direct children. - Is using now existing DOM, so Vue generates the DOM, not the plugin.
Angular:
- Is using now existing DOM, so Angular generates the DOM, not the plugin.
overlayscrollbars-ngx@v0.1.1
Improvements:
- overlayscrollbars-ngx has now
AoTcompilation support.
OverlayScrollbars Version 1.9.1
Bugfixes:
- Fixed a bug where the plugin didn't update correctly if you changed interleaved options twice in a row to the same value
Improvements:
- created build script (
build.jsfile) - The
react,vueandangularcomponents are finally out, you can install them vianpmor you can find them in thepackagesfolder:
npm install overlayscrollbars-reactnpm install overlayscrollbars-vuenpm install overlayscrollbars-ngxOverlayScrollbars Version 1.9.0
Bugfixes:
- Fixed a bug where unexpected scroll jumps happened after you changed a option.
- Fixed a bug where a
min-widthchange wasn't detected if width isauto - Fixed a bug where the
updatefunction didn't update atextareaproperly, when only itsvaluechanged and due to that its size.
Features:
- A new global method
OverlayScrollbars.validwhich checks whether a passed object is a non-destroyed OverlayScrollbars instance. You can read more about it here.
Improvements:
- The readme has now a TypeScript section.
OverlayScrollbars Version 1.8.0
Bugfixes:
- Fixed #122
- Fixed #120 and #119 with
autoUpdate : trueset. - Fixed a bug where the
update()method didn't undo thesleep()method like it should.
Features:
- The
getState()methods returned object contains now a new property calleddestroyedwhich indicates that the instance has been destroyed.
Improvements:
- Changed the management of
passive event listeners: touch events which callprefentDefault()are now added withpassive : false, all other events which should be passive and don't callprefentDefault()are added withpassive : true. Fixed #124 with this change. - Preparation for
framework wrapperssuch asreact,vueandangular: theoption()method will now only cause a call to theupdate()method if at least one option has been truly changed.
Internal Changes:
- Cleaner handling of the internal
update()method. - Preparation for DOM-
tests.
OverlayScrollbars Version 1.7.3
Bugfixes:
- Fixed #120 - the status of the DOM / MutationObservers is now synchronized if you call the
scrollorupdatefunction. - Fixed #119 - the used
MutationObserverlistens now to theopenattribute. - Fixed a bug where you couldn't resize the
host elementwhen its size was0previously. - Fixed a
IE8bug where the plugin didn't work correctly.
OverlayScrollbars Version 1.7.2
Bugfixes:
- Fixed a bug where
width: autoelements had incorrect width ifpaddingAbsolutewastrue.
Improvements:
- OverlayScrollbars has better perfomance on Firefox now because it utilizes the new scrollbar-width CSS Property.
- Improved perfomance on all browsers which are using natively overlaid scrollbars (mobile, OS-X etc.).
- Changes to the
textareasize measuring process, which results also in better performance if plugin is initialized ontextareaelements.
Please make sure you use the latest CSS file, else you won't gain the performance improvements on Firefox!
OverlayScrollbars Version 1.7.1
OverlayScrollbars Version 1.7.0
Bugfixes:
- Fixed #98
- Fixed #94 - The
eval()call in thescrollmethod is now only needed if you pass a calculation or a unit string. Coordinates like500,"500px","+=500","+=500px"are now executed withouteval().
Advanced coordinates with other units thanpxlike"50%","1vw",1vhor whole calculation strings like"100px - 5%","50% - 10px + 1vh"still needs theeval(). - Fixed #102 Scaled host-elements are no longer a problem. You can test this with the new scaling demo!
- Fixed a bug where the
textarea-size was calculated incorrectly whenpaddingwas0. - Fixed a bug which caused the
overflow-amountto be incorrect on auto-sized elements.
Features:
- A new option
scrollbars.snapHandlewas added which helps you to control how the scrollbar-handle behaves if you useCSS Snap Scrolling. Read more about it in the documentation - The
scroll()methods returned object now has a new property calledsnappedHandleOffset. This is a object which represents the current handle-offset as if it was snapped withCSS Snap Scrolling, the normalhandleOffsetrepresents the current non snapped handle-offset. You can read more in the documentation which is up to date.
Improvements:
CSS Snap Scrollinghas now deeper support: The handle dragging is now smooth (controlled with the new optionscrollbars.snapHandle) and the jump-back if you let go midway has now a transition.- If you set a
handle-max-size and the overflow is way to small, the resulting jump-back if you let go midway has now a transition. - If you drag the
handlethe next calculated scroll-position is nowroundedinstead offlooredwhich results in better user-experience. Click scrollingis now more precise.
Changes:
- The since
v1.6.0deprecated object which the.scroll()-method returns is now removed. You can read more details in the documentation. I've removed it to reduce the code size.
Internal Changes:
- Summarized certain code-parts where the same action was perfomred for each axis separately which reduced the code size.