Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed May 29, 2023
1 parent 7b7ccd9 commit 2faec3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2faec3a

Please sign in to comment.