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.
always: false
1 parent 06dd376 commit b5e4ec7Copy full SHA for b5e4ec7
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "rc-scroll-anim",
3
- "version": "2.5.8",
+ "version": "2.5.9",
4
"description": "scroll-anim anim component for react",
5
"keywords": [
6
"react",
src/ScrollParallax.jsx
@@ -105,6 +105,9 @@ class ScrollParallax extends React.Component {
105
}
106
107
resizeEventListener = () => {
108
+ if (this.onCompleteBool && !this.props.always) {
109
+ return;
110
+ }
111
this.scrollTop = currentScrollTop();
112
this.target = this.props.targetId && document.getElementById(this.props.targetId);
113
this.clientHeight = this.target ? this.target.clientHeight : windowHeight();
0 commit comments