Thanks to visit codestin.com Credit goes to github.com
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 7b147e0 commit df29452Copy full SHA for df29452
src/virtual.js
@@ -141,6 +141,10 @@ export default class Virtual {
141
this.direction = offset < this.offset ? DIRECTION_TYPE.FRONT : DIRECTION_TYPE.BEHIND
142
this.offset = offset
143
144
+ if (!this.param) {
145
+ return
146
+ }
147
+
148
if (this.direction === DIRECTION_TYPE.FRONT) {
149
this.handleFront()
150
} else if (this.direction === DIRECTION_TYPE.BEHIND) {
@@ -153,7 +157,7 @@ export default class Virtual {
153
157
handleFront () {
154
158
const overs = this.getScrollOvers()
155
159
// should not change range if start doesn't exceed overs
156
- if (overs > this.range.start || !this.param) {
160
+ if (overs > this.range.start) {
161
return
162
}
163
0 commit comments