We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc1574 commit 5ea4421Copy full SHA for 5ea4421
src/libs/ParallaxScrollListener.js
@@ -122,9 +122,10 @@ import {
122
123
const { slowerScrollRate } = element.props;
124
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
+ // NOTE: Many of these cause layout and reflow so we're not
+ // calculating them on every frame -- instead these values
+ // are cached on the element to access later when determining
128
+ // the element's position and offset.
129
const el = element._outer;
130
const rect = el.getBoundingClientRect();
131
const html = document.documentElement;
0 commit comments