diff --git a/src/directives/observe-visibility.js b/src/directives/observe-visibility.js index 1992846..a2cb8e1 100644 --- a/src/directives/observe-visibility.js +++ b/src/directives/observe-visibility.js @@ -9,7 +9,7 @@ class VisibilityState { } get threshold () { - return (this.options.intersection && this.options.intersection.threshold) || 0 + return this.options.intersection && typeof this.options.intersection.threshold === 'number' ? this.options.intersection.threshold : 0 } createObserver (options, vnode) {