From 5f69269db6ff9f29d4f1509eb056efc739379cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Horv=C3=A1th?= <1.horoland@gmail.com> Date: Fri, 9 Oct 2020 18:02:11 +0200 Subject: [PATCH 1/2] fix: allow passing 0 as duration (#376) --- src/scrollTo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrollTo.js b/src/scrollTo.js index df631405..050eef7d 100644 --- a/src/scrollTo.js +++ b/src/scrollTo.js @@ -143,7 +143,7 @@ export const scroller = () => { } container = _.$(options.container || defaults.container) - duration = options.duration || defaults.duration + duration = options.hasOwnProperty('duration') ? options.duration : defaults.duration easing = options.easing || defaults.easing offset = options.hasOwnProperty('offset') ? options.offset : defaults.offset force = options.hasOwnProperty('force') From 91833e6bfdeb4d0273750c9f8095489968a6829e Mon Sep 17 00:00:00 2001 From: rigor789 Date: Fri, 9 Oct 2020 16:02:46 +0000 Subject: [PATCH 2/2] chore(changelog): 2.19.1 [ci skip] --- docs/changelog/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/changelog/README.md b/docs/changelog/README.md index 25787016..b8bc3095 100644 --- a/docs/changelog/README.md +++ b/docs/changelog/README.md @@ -1,3 +1,10 @@ +## [2.19.1](https://github.com/rigor789/vue-scrollto/compare/v2.19.0...v2.19.1) (2020-10-09) + + +### Bug Fixes + +* allow passing 0 as duration ([#376](https://github.com/rigor789/vue-scrollto/issues/376)) ([5f69269](https://github.com/rigor789/vue-scrollto/commit/5f69269db6ff9f29d4f1509eb056efc739379cfe)) + # [2.19.0](https://github.com/rigor789/vue-scrollto/compare/v2.18.2...v2.19.0) (2020-10-09)