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 d5d435b commit dbdd139Copy full SHA for dbdd139
src/ScrollElement.jsx
@@ -30,7 +30,7 @@ class ScrollElement extends React.Component {
30
const nextState = {
31
prevProps: props,
32
};
33
- if (prevProps) {
+ if (prevProps && props !== prevProps) {
34
$self.scrollEventListener();
35
}
36
return nextState; // eslint-disable-line
src/ScrollParallax.jsx
@@ -45,7 +45,7 @@ class ScrollParallax extends React.Component {
45
46
47
48
49
const equal = objectEqual(prevProps.animation, props.animation);
50
if (!equal) {
51
$self.setDefaultData(props.animation || {});
0 commit comments