github KingSora/OverlayScrollbars v1.7.0
OverlayScrollbars Version 1.7.0

latest releases: v2.10.1, v2.10.0, v2.9.0...
5 years ago

Bugfixes:

  • Fixed #98
  • Fixed #94 - The eval() call in the scroll method is now only needed if you pass a calculation or a unit string. Coordinates like 500, "500px", "+=500", "+=500px" are now executed without eval().
    Advanced coordinates with other units than px like "50%", "1vw", 1vh or whole calculation strings like "100px - 5%", "50% - 10px + 1vh" still needs the eval().
  • 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 when padding was 0.
  • Fixed a bug which caused the overflow-amount to be incorrect on auto-sized elements.

Features:

  • A new option scrollbars.snapHandle was added which helps you to control how the scrollbar-handle behaves if you use CSS Snap Scrolling. Read more about it in the documentation
  • The scroll() methods returned object now has a new property called snappedHandleOffset. This is a object which represents the current handle-offset as if it was snapped with CSS Snap Scrolling, the normal handleOffset represents the current non snapped handle-offset. You can read more in the documentation which is up to date.

Improvements:

  • CSS Snap Scrolling has now deeper support: The handle dragging is now smooth (controlled with the new option scrollbars.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 handle the next calculated scroll-position is now rounded instead of floored which results in better user-experience.
  • Click scrolling is now more precise.

Changes:

  • The since v1.6.0 deprecated 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.

Don't miss a new OverlayScrollbars release

NewReleases is sending notifications on new releases.