Skip to content

Commit

Permalink
Released v2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed Aug 25, 2022
1 parent feb2135 commit afa413d
Show file tree
Hide file tree
Showing 4 changed files with 11,001 additions and 9 deletions.
15 changes: 13 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-virtual-scroll-list v2.3.3
* vue-virtual-scroll-list v2.3.4
* open source under the MIT license
* https://github.com/tangbc/vue-virtual-scroll-list#readme
*/
Expand Down Expand Up @@ -745,9 +745,20 @@
this.$on(EVENT_TYPE.SLOT, this.onSlotResized);
}
},
// set back offset when awake from keep-alive
activated: function activated() {
// set back offset when awake from keep-alive
this.scrollToOffset(this.virtual.offset);

if (this.pageMode) {
document.addEventListener('scroll', this.onScroll, {
passive: false
});
}
},
deactivated: function deactivated() {
if (this.pageMode) {
document.removeEventListener('scroll', this.onScroll);
}
},
mounted: function mounted() {
// set position
Expand Down
Loading

0 comments on commit afa413d

Please sign in to comment.