Skip to content

Commit

Permalink
🇬🇧 Fixed motion calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagerfield committed Apr 25, 2014
1 parent 81f33cb commit 7bdc239
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions deploy/jquery.parallax.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@
this.mx = this.calibrateX ? dx : this.ix;
this.my = this.calibrateY ? dy : this.iy;
}
this.mx *= this.ew / this.scalarX;
this.my *= this.eh / this.scalarY;
this.mx *= this.ew * (this.scalarX / 100);
this.my *= this.eh * (this.scalarY / 100);
if (!isNaN(parseFloat(this.limitX))) {
this.mx = this.clamp(this.mx, -this.limitX, this.limitX);
}
Expand Down
2 changes: 1 addition & 1 deletion deploy/jquery.parallax.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions deploy/parallax.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@
this.mx = this.calibrateX ? dx : this.ix;
this.my = this.calibrateY ? dy : this.iy;
}
this.mx *= this.ew / this.scalarX;
this.my *= this.eh / this.scalarY;
this.mx *= this.ew * (this.scalarX / 100);
this.my *= this.eh * (this.scalarY / 100);
if (!isNaN(parseFloat(this.limitX))) {
this.mx = this.clamp(this.mx, -this.limitX, this.limitX);
}
Expand Down
Loading

0 comments on commit 7bdc239

Please sign in to comment.