diff --git a/src/virtual.js b/src/virtual.js index 8cde744..c7f3300 100644 --- a/src/virtual.js +++ b/src/virtual.js @@ -137,7 +137,7 @@ export default class Virtual { // calculating range on scroll handleScroll (offset) { - this.direction = offset < this.offset || offset == 0 ? DIRECTION_TYPE.FRONT : DIRECTION_TYPE.BEHIND + this.direction = offset < this.offset || offset === 0 ? DIRECTION_TYPE.FRONT : DIRECTION_TYPE.BEHIND this.offset = offset if (!this.param) {