Skip to content

Commit afa413d

Browse files
committed
Released v2.3.4
1 parent feb2135 commit afa413d

File tree

4 files changed

+11001
-9
lines changed

4 files changed

+11001
-9
lines changed

Diff for: dist/index.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-virtual-scroll-list v2.3.3
2+
* vue-virtual-scroll-list v2.3.4
33
* open source under the MIT license
44
* https://github.com/tangbc/vue-virtual-scroll-list#readme
55
*/
@@ -745,9 +745,20 @@
745745
this.$on(EVENT_TYPE.SLOT, this.onSlotResized);
746746
}
747747
},
748-
// set back offset when awake from keep-alive
749748
activated: function activated() {
749+
// set back offset when awake from keep-alive
750750
this.scrollToOffset(this.virtual.offset);
751+
752+
if (this.pageMode) {
753+
document.addEventListener('scroll', this.onScroll, {
754+
passive: false
755+
});
756+
}
757+
},
758+
deactivated: function deactivated() {
759+
if (this.pageMode) {
760+
document.removeEventListener('scroll', this.onScroll);
761+
}
751762
},
752763
mounted: function mounted() {
753764
// set position

0 commit comments

Comments
 (0)