Skip to content

Commit df29452

Browse files
committed
Change param detecting.
1 parent 7b147e0 commit df29452

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/virtual.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ export default class Virtual {
141141
this.direction = offset < this.offset ? DIRECTION_TYPE.FRONT : DIRECTION_TYPE.BEHIND
142142
this.offset = offset
143143

144+
if (!this.param) {
145+
return
146+
}
147+
144148
if (this.direction === DIRECTION_TYPE.FRONT) {
145149
this.handleFront()
146150
} else if (this.direction === DIRECTION_TYPE.BEHIND) {
@@ -153,7 +157,7 @@ export default class Virtual {
153157
handleFront () {
154158
const overs = this.getScrollOvers()
155159
// should not change range if start doesn't exceed overs
156-
if (overs > this.range.start || !this.param) {
160+
if (overs > this.range.start) {
157161
return
158162
}
159163

0 commit comments

Comments
 (0)