A polyfill for the 'scroll-behavior' CSS-property
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.12...v2.0.13
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.11...v2.0.12
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.10...v2.0.11
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.9...v2.0.10
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.8...v2.0.9
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.7...v2.0.8
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.6...v2.0.7
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.5...v2.0.6
https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.4...v2.0.5
This version brings several improvements:
scrollTop
and scrollLeft
settersFirst, the setters on Element.prototype for 'scrollLeft' and 'scrollTop' now works with the polyfill. If an element is within a scrolling box with a scroll-behavior of 'smooth', using these setters will now trigger smooth scrolling between the start and end positions.
Element
interfaceAdditionally, part of the CSSOM View Module enhancements to the Element interface is proper standardizations of Element.prototype.scroll
, Element.prototype.scrollTo
,
Element.prototype.scrollBy
, and Element.protoype.scrollIntoView
.
These methods are all polyfilled with fallbacks for a unified scrolling API across browsers.
Finally, a few bugs have been fixed