From f6954a93ffdc5c6a644da21471f049a4812f9661 Mon Sep 17 00:00:00 2001 From: YoungSx Date: Mon, 3 Jul 2017 15:44:46 +0800 Subject: [PATCH] Fixed error, if the number of items is less than remain,when start props is setted, it would appear unexpected blank. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index af38309..5bb18dd 100644 --- a/index.js +++ b/index.js @@ -66,7 +66,7 @@ } delta.end = end - delta.start = start + if (start >= this.remain) delta.start = start this.$forceUpdate() Vue2.nextTick(this.setScrollTop.bind(this, scrollTop))