Universal Smooth Scroll 4.1.0
CristianDavideConte
released this
22 Oct 17:54
·
515 commits
to master
since this release
Version 4.1.0 is out !
New Features
- the new
getScrollbarsMaxDimension
method allows you to retrieve the_scrollbarsMaxDimensions
value - the new
calcScrollbarsDimensions
method allows you to retrieve the amount of pixels occupied by an element's scrollbars scrollIntoView
&scrollIntoViewIfNeeded
now supports scrollbars' dimensions calculations on containers bigger than the viewport- the new
EASE_ELASTIC_X
ease function of theuniversalsmoothscroll-ease-function
library allows for elastic-easing-driven scroll animations on the x-axis of a container - the new
EASE_ELASTIC_Y
ease function of theuniversalsmoothscroll-ease-function
library 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_LOGGER
message logging - greatly improved the
DEFAULT_WARNING_LOGGER
message 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
container
parameter now check if the corresponding received value is the window element or an HTMLElement _scrollbarDimension
is now called_scrollbarsMaxDimension
- all the ease function of the
universalsmoothscroll-ease-function
library now correctly respect the passed duration - the
hrefSetup
method now stops the propagation of click events on the supported pageLinks - scroll-animations with a
finalPosition
equals 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-function
library now shows the correct ease function name