Skip to content

Commit

Permalink
ensure to multiply by a number
Browse files Browse the repository at this point in the history
  • Loading branch information
valdrinkoshi authored Oct 10, 2017
1 parent 2732f95 commit 58d536e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-scroll-effects/effects/parallax-background.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
if (isNaN(scalar)) {
scalar = 0.8;
}
fx.deltaBg = this._dHeight * scalar;
fx.deltaBg = (this._dHeight || 0) * scalar;
} else {
if (isNaN(scalar)) {
scalar = 1;
Expand Down

0 comments on commit 58d536e

Please sign in to comment.