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