Skip to content

Commit 5ea4421

Browse files
committed
clarify note
1 parent bdc1574 commit 5ea4421

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libs/ParallaxScrollListener.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ import {
122122

123123
const { slowerScrollRate } = element.props;
124124

125-
// NOTE: Many of these cause layout and reflow so don't
126-
// do this on every frame, instead the values are cached
127-
// to access later
125+
// NOTE: Many of these cause layout and reflow so we're not
126+
// calculating them on every frame -- instead these values
127+
// are cached on the element to access later when determining
128+
// the element's position and offset.
128129
const el = element._outer;
129130
const rect = el.getBoundingClientRect();
130131
const html = document.documentElement;

0 commit comments

Comments
 (0)