We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85182c commit a2595fcCopy full SHA for a2595fc
index.js
@@ -1,4 +1,4 @@
1
-(function (root, factory) {
+;(function (root, factory) {
2
var namespace = 'VirtualScrollList'
3
if (typeof exports === 'object' && typeof module === 'object') {
4
module.exports = factory(namespace, require('vue'))
@@ -90,8 +90,8 @@
90
91
var delta = this.delta
92
var start, end, scrollTop
93
-
94
- if (this.isOverflow(index)) {
+ var isOver = this.isOverflow(index)
+ if (isOver) {
95
var zone = this.getLastZone()
96
end = zone.end
97
start = zone.start
@@ -102,6 +102,10 @@
102
scrollTop = start * this.size
103
}
104
105
+ if (this.variable) {
106
+ scrollTop = this.getVarOffset(isOver ? delta.total : start)
107
+ }
108
+
109
delta.end = end
110
delta.start = start >= this.remain ? start : 0
111
0 commit comments