23.06.2022.
Changed
- Switched to keen as build system.
- Added ESM and CJS modules.
- Upgraded dev dependencies.
18.03.2020.
Fixed
- Added a warning if the scrolling element has
scroll-behavior: smooth
#55
08.03.2020.
Removed
- Removed support for using the script in browsers directly. It was broken, so probably was not using it anyway. Use version 1 if you really need it.
27.10.2020.
Fixed
19.10.2020.
Fixed
25.06.2020.
Fixed
- Added
Promise<boolean>
as a return type in the types definition file.
07.05.2020.
Fixed
- Event options were missing in
removeEventListener
#44
20.04.2020.
Fixed
- Calculating element offset inside of element was sometimes a pixel off.
- Active animations weren't cleared on animation end
- Now error is thrown in "elementToScroll" is not a parent of "scrollToElement"
09.11.2019.
Fixed
- Fixed TS types #36
03.10.2019.
Fixed
- Fixed library breaking when running on server #34
26.09.2019.
Changed
- Switched to commonjs module #33
23.09.2019.
Changed
- Full TypeScript rewrite
- New method signatures
- Method now returns a promise
14.09.2019.
Fixed
- Fixed if element was scrolling and cancelOnUserAction was passed the whole page couldn't scroll #28
02.09.2019.
Changed
onComplete
callback now has a boolean argumentisCanceledByUserAction
, and it is called even when scroll is canceled #26
07.06.2018.
Fixed
17.05.2018.
Added
- Added
offset
option, kudos to @weotch #17
Fixed
- Chrome would throw
Unable to preventDefault inside passive event listener invocation.
whencancelOnUserAction
was set tofalse
#18
22.04.2018.
Added
- Added
horizontal
option, kudos to @jesseditson #15 - Changelog
09.04.2018.
Added
- Set events to be
passive
by default, kudos to @cybot1711 #14
For changes prior version 1.1.11 please check the commit list.