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.
1 parent 2418710 commit b2d6c18Copy full SHA for b2d6c18
src/index.js
@@ -205,13 +205,12 @@ const VirtualList = Vue.component('virtual-list', {
205
206
// emit event in special position
207
emitEvent (offset, clientSize, scrollSize, evt) {
208
- const range = this.virtual.getRange()
209
if (this.virtual.isFront() && !!this.dataSources.length && (offset - this.topThreshold <= 0)) {
210
- this.$emit('totop', evt, range)
+ this.$emit('totop')
211
} else if (this.virtual.isBehind() && (offset + clientSize + this.bottomThreshold >= scrollSize)) {
212
- this.$emit('tobottom', evt, range)
+ this.$emit('tobottom')
213
} else {
214
- this.$emit('scroll', evt, range)
+ this.$emit('scroll', evt, this.virtual.getRange())
215
}
216
},
217
0 commit comments