Skip to content

Commit

Permalink
style: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBarranqueiro committed Jul 30, 2018
1 parent 2e776a1 commit e08693f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/_js/post-bottom-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
this.$header = $('#header');
this.delta = 15;
this.lastScrollTop = 0;
this.lastScrollDownPos = 0
this.lastScrollUpPos = 0
this.lastScrollDownPos = 0;
this.lastScrollUpPos = 0;
};

PostBottomBar.prototype = {
Expand Down Expand Up @@ -59,14 +59,14 @@
(postFooterOffsetTop + this.$postFooter.height() > scrollTop + $(window).height() ||
postFooterOffsetTop < scrollTop + this.$header.height())) {
this.$postBottomBar.slideDown();
this.lastScrollUpPos = scrollTop
this.lastScrollUpPos = scrollTop;
}
}

// scrolling down
if (scrollTop > this.lastScrollUpPos + this.delta) {
this.$postBottomBar.slideUp();
this.lastScrollDownPos = scrollTop
this.lastScrollDownPos = scrollTop;
}

this.lastScrollTop = scrollTop;
Expand Down

0 comments on commit e08693f

Please sign in to comment.