Skip to content

Commit 727bfea

Browse files
committed
update scroll/resize hander comments
1 parent 0c7a1a2 commit 727bfea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/libs/ParallaxController.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function ParallaxController() {
4949
_addListeners();
5050

5151
/**
52-
* Window scroll handler sets the scrollY
53-
* and then calls updateElementPositions()
52+
* Window scroll handler. Sets the 'scrollY'
53+
* and then calls '_updateElementPositions()'.
5454
*/
5555
function _handleScroll() {
5656
// reference to prev scroll y
@@ -71,9 +71,8 @@ function ParallaxController() {
7171
}
7272

7373
/**
74-
* Window resize handler
75-
* Sets new window inner height then updates
76-
* parallax element attributes and positions
74+
* Window resize handler. Sets the new window inner height
75+
* then updates parallax element attributes and positions.
7776
*/
7877
function _handleResize() {
7978
_setWindowHeight();

0 commit comments

Comments
 (0)