Skip to content

Commit 89dbd0d

Browse files
author
Guillaume Chau
committed
New 'visible' event emitted when the scroller becomes visible
1 parent fcaf844 commit 89dbd0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/VirtualScroller.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ export default {
365365
366366
handleVisibilityChange (isVisible, entry) {
367367
if (this._ready && (isVisible || entry.boundingClientRect.width !== 0 || entry.boundingClientRect.height !== 0)) {
368+
this.$emit('visible')
368369
this.$nextTick(() => {
369370
this.updateVisibleItems()
370371
})

0 commit comments

Comments
 (0)