Bugfixes:
- Fixed #98
- Fixed #94 - The
eval()
call in thescroll
method 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 thanpx
like"50%"
,"1vw"
,1vh
or 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 whenpadding
was0
. - 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 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 normalhandleOffset
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 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
handle
the next calculated scroll-position is nowrounded
instead offloored
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.