Skip to content

Commit 618fa37

Browse files
committed
Merge branch 'YoungSx-master'
2 parents 5a5fa3b + 89a5311 commit 618fa37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767

6868
delta.end = end
69-
delta.start = start
69+
delta.start = start >= this.remain ? start : 0
7070

7171
this.$forceUpdate()
7272
Vue2.nextTick(this.setScrollTop.bind(this, scrollTop))
@@ -171,7 +171,7 @@
171171
var delta = this.$options.delta
172172
var benchs = Math.round(remains / 2)
173173

174-
delta.start = this.start
174+
delta.start = this.start >= remains ? this.start : 0
175175
delta.end = this.start + remains + benchs
176176
delta.keeps = remains + benchs
177177
delta.viewHeight = this.size * remains

0 commit comments

Comments
 (0)