Skip to content

Commit

Permalink
fix: allow passing 0 as duration (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
hroland authored Oct 9, 2020
1 parent 48b3599 commit 5f69269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrollTo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5f69269

Please sign in to comment.