Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed Apr 20, 2019
1 parent c0ee3c4 commit 9f37f21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "vue-virtual-scroll-list",
"version": "1.3.4",
"version": "1.3.5",
"description": "A vue component support big amount data list with high scroll performance.",
"main": "/dist/index.js",
"main": "./src/index.js",
"files": [
"/scr/index.js",
"/dist/index.js"
"./src/index.js"
],
"scripts": {
"test": "rm -rf coverage && jest",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@
index = parseInt(index, 10)
index = Math.max(0, index)

var lastStart = delta.total - delta.keeps
var isLast = (index <= delta.total && index >= lastStart) || (index > delta.total)
const lastStart = delta.total - delta.keeps
const isLast = (index <= delta.total && index >= lastStart) || (index > delta.total)
if (isLast) {
end = delta.total - 1
start = Math.max(0, lastStart)
Expand Down

0 comments on commit 9f37f21

Please sign in to comment.