Skip to content

Commit

Permalink
fix: allow passing 0 as offset (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
veitbjarsch authored Apr 15, 2020
1 parent 93d7dd2 commit 09ee3c4
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 @@ -145,7 +145,7 @@ export const scroller = () => {
container = _.$(options.container || defaults.container)
duration = options.duration || defaults.duration
easing = options.easing || defaults.easing
offset = options.offset || defaults.offset
offset = options.hasOwnProperty('offset') ? options.offset : defaults.offset
force = options.hasOwnProperty('force')
? options.force !== false
: defaults.force
Expand Down

0 comments on commit 09ee3c4

Please sign in to comment.