Skip to content

Commit b6f60fa

Browse files
committed
comment out unused scrollDown var
1 parent e4bb450 commit b6f60fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/ParallaxScroller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ParallaxScroller = (function() {
2424
let ticking = false;
2525

2626
// Scroll direction
27-
let scrollDown = null;
27+
// let scrollDown = null;
2828

2929
// Passive support
3030
const supportsPassive = testForPassiveScroll();
@@ -51,7 +51,7 @@ const ParallaxScroller = (function() {
5151
scrollY = window.pageYOffset; // Supports IE 9 and up.
5252

5353
// direction
54-
scrollDown = scrollY > prevScrollY;
54+
// scrollDown = scrollY > prevScrollY;
5555

5656
// Only called if the last animation request has been
5757
// completed and there are parallax elements to update

0 commit comments

Comments
 (0)