Universal Smooth Scroll 4.1.0
·
515 commits
to master
since this release
Version 4.1.0 is out !
New Features
- the new
getScrollbarsMaxDimensionmethod allows you to retrieve the_scrollbarsMaxDimensionsvalue - the new
calcScrollbarsDimensionsmethod allows you to retrieve the amount of pixels occupied by an element's scrollbars scrollIntoView&scrollIntoViewIfNeedednow supports scrollbars' dimensions calculations on containers bigger than the viewport- the new
EASE_ELASTIC_Xease function of theuniversalsmoothscroll-ease-functionlibrary allows for elastic-easing-driven scroll animations on the x-axis of a container - the new
EASE_ELASTIC_Yease function of theuniversalsmoothscroll-ease-functionlibrary allows for elastic-easing-driven scroll animations on the y-axis of a container - rubber band scrolling effect is now supported
- greatly improved the
DEFAULT_ERROR_LOGGERmessage logging - greatly improved the
DEFAULT_WARNING_LOGGERmessage logging - the DEMO has been updated to showcase the new rubber band effect
- several performance optimizations + bug fixes + code cleanup
Changes compared to the previous version
- all the API methods that require a
containerparameter now check if the corresponding received value is the window element or an HTMLElement _scrollbarDimensionis now called_scrollbarsMaxDimension- all the ease function of the
universalsmoothscroll-ease-functionlibrary now correctly respect the passed duration - the
hrefSetupmethod now stops the propagation of click events on the supported pageLinks - scroll-animations with a
finalPositionequals to the current position of the container will now stop the current scroll-animation - errors generated inside of an ease function of the
universalsmoothscroll-ease-functionlibrary now shows the correct ease function name