Skip to content

Commit b83b3a0

Browse files
committed
Release v2.2.9
1 parent eb22df7 commit b83b3a0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: dist/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-virtual-scroll-list v2.2.8
2+
* vue-virtual-scroll-list v2.2.9
33
* open source under the MIT license
44
* https://github.com/tangbc/vue-virtual-scroll-list#readme
55
*/
@@ -121,8 +121,8 @@
121121
var _this = this;
122122

123123
if (this.param && key in this.param) {
124-
// if uniqueIds reducing, find out deleted id and remove from size map
125-
if (key === 'uniqueIds' && value.length < this.param[key].length) {
124+
// if uniqueIds change, find out deleted id and remove from size map
125+
if (key === 'uniqueIds') {
126126
this.sizes.forEach(function (v, key) {
127127
if (!value.includes(key)) {
128128
_this.sizes["delete"](key);
@@ -817,7 +817,7 @@
817817
var clientSize = this.getClientSize();
818818
var scrollSize = this.getScrollSize(); // iOS scroll-spring-back behavior will make direction mistake
819819

820-
if (offset < 0 || offset + clientSize > scrollSize || !scrollSize) {
820+
if (offset < 0 || offset + clientSize > scrollSize + 1 || !scrollSize) {
821821
return;
822822
}
823823

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtual-scroll-list",
3-
"version": "2.2.8",
3+
"version": "2.2.9",
44
"description": "A vue component support big amount data list with high scroll performance.",
55
"main": "dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)