We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
threshold
1 parent 3603805 commit 617b650Copy full SHA for 617b650
src/directives/observe-visibility.js
@@ -9,7 +9,7 @@ class VisibilityState {
9
}
10
11
get threshold () {
12
- return (this.options.intersection && this.options.intersection.threshold) || 0
+ return this.options.intersection && typeof this.options.intersection.threshold === 'number' ? this.options.intersection.threshold : 0
13
14
15
createObserver (options, vnode) {
0 commit comments