Skip to content

Commit 20f4351

Browse files
committed
Fix
1 parent 41e9f90 commit 20f4351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ const VirtualList = Vue.component(NAME, {
135135
const offsetShape = root[this.isHorizontal ? 'clientWidth' : 'clientHeight']
136136
const scrollShape = root[this.isHorizontal ? 'scrollWidth' : 'scrollHeight']
137137

138-
if (isLower && !!this.dataSources.length && offset - this.upperThreshold <= 0) {
138+
if (isUpper && !!this.dataSources.length && offset - this.upperThreshold <= 0) {
139139
this.$emit('toupper', evt, range)
140-
} else if (isUpper && offset + offsetShape + this.lowerThreshold >= scrollShape) {
140+
} else if (isLower && offset + offsetShape + this.lowerThreshold >= scrollShape) {
141141
this.$emit('tolower', evt, range)
142142
} else {
143143
this.$emit('scroll', evt, range)

0 commit comments

Comments
 (0)