We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b3599 commit 5f69269Copy full SHA for 5f69269
src/scrollTo.js
@@ -143,7 +143,7 @@ export const scroller = () => {
143
}
144
145
container = _.$(options.container || defaults.container)
146
- duration = options.duration || defaults.duration
+ duration = options.hasOwnProperty('duration') ? options.duration : defaults.duration
147
easing = options.easing || defaults.easing
148
offset = options.hasOwnProperty('offset') ? options.offset : defaults.offset
149
force = options.hasOwnProperty('force')
0 commit comments