Skip to content

Commit

Permalink
Make sure offset and start called safety.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed Jun 19, 2018
1 parent af3fb18 commit cb7f958
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
5 changes: 4 additions & 1 deletion examples/build/finite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion examples/build/infinite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion examples/build/variable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@

// set manual scroll top.
setScrollTop: function (scrollTop) {
this.$refs.vsl.scrollTop = scrollTop
var vsl = this.$refs.vsl
if (vsl) {
vsl.scrollTop = scrollTop
}
},

// filter the shown items base on `start` and `end`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-virtual-scroll-list",
"version": "1.2.5",
"version": "1.2.6",
"description": "A vue (2.x) component that support big data list with high scroll performance.",
"main": "index.js",
"files": [
Expand Down

0 comments on commit cb7f958

Please sign in to comment.