Skip to content

Universal Smooth Scroll 6.1.0

Latest
Compare
Choose a tag to compare
@CristianDavideConte CristianDavideConte released this 27 Nov 18:08
d1cdbbf

Version 6.1.0 is out !

New Features

  • the new getWindowScroller method allows you to retrieve the element that scrolls the window
  • the new getFramesTime method allows you to retrieve the value of uss._framesTime
  • the new calcFramesTimes method allows you to recalculate the uss._framesTime value
  • the new containScroll parameter of scrollXTo, scrollYTo, scrollXBy and scrollYBy allows you to limit the range of scrolling of a container between 0 and its maxScrollX/maxScrollY
  • getAllScrollableParents now returns the same array of parents used by scrollIntoView and scrollIntoViewIfNeeded
  • calcXScrollbarsDimensions now support all instances of Element instead of only SVGElements and HTMLElements
  • calcYScrollbarsDimensions now support all instances of Element instead of only SVGElements and HTMLElements
  • calcScrollbarsDimensions now support all instances of Element instead of only SVGElements and HTMLElements
  • scrollable parents of Elements are now cached (10x faster)
  • the new getBrowserRefreshRate method of the Dev-Helpers library allows you to retrieve the browser's fps count during testing
  • the same stepLengthCalculator obtained from one of the methods of the Ease-Functions library can now be used with multiple containers
  • setStepLengthCalculator can now reset the default xStepLengthCalculator and yStepLengthCalculator of a container if no value is passed
  • the calculation time and reliability of uss._framesTime has been greatly improved (from a few seconds down to 33ms at most)
  • improved parsing of default error/warning loggers for values that are not instances of Element
  • bugfixes and performance improvements


Changes compared to the previous version

  • if the init parameter is passed to hrefSetup, now the propagation of the event is not stopped by default (the event is now the 3rd input parameter of the init method)
  • the alignment of scrollIntoViewIfNeeded is now always applied, even if the passed element is already into view
  • regexes used by the API are now global constants
  • the scrollable parent of document.documentElement is now null instead of window
  • API caches are now reset to undefined instead of null after a resize event


Here you can find the full Universal Smooth Scroll 6.1.0 project: https://github.com/users/CristianDavideConte/projects/1

For any bug or feature request don't hesitate to contact me.
Have a nice day :)

Cristian Davide Conte