Skip to content

Commit 73b1f19

Browse files
HertebyGuillaume Chau
authored and
Guillaume Chau
committed
bugfix: updateVisibleItems accidentally being called with 'force' (#24)
* bugfix: updateVisibleItems accidentally being called with 'force' window event was getting passed to updateVisibleItems(), which treated it as force = true This was not your intention, right? * Update VirtualScroller.vue
1 parent ab87dcd commit 73b1f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/VirtualScroller.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ export default {
272272
},
273273
274274
addWindowScroll () {
275-
window.addEventListener('scroll', this.updateVisibleItems, true)
275+
window.addEventListener('scroll', () => this.updateVisibleItems(), true)
276276
},
277277
278278
removeWindowScroll () {
279-
window.removeEventListener('scroll', this.updateVisibleItems, true)
279+
window.removeEventListener('scroll', () => this.updateVisibleItems(), true)
280280
},
281281
},
282282

0 commit comments

Comments
 (0)