Permalink
Browse files

IE Fix

  • Loading branch information...
1 parent 6567d78 commit 1ee33a274449632d6bac8af45db691fdc1cbc6a5 @IanLunn IanLunn committed Nov 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/jquery.parallax-1.1.js
@@ -67,8 +67,8 @@ function inView(pos, element){
height = $this.height();
$this.css({'backgroundPosition': newPos(xpos, outerHeight, adjuster, inertia)});
- function newPos(xpos, windowHeight, pos, adjuster, inertia){
- return xpos + Math.round((-((windowHeight + pos) - adjuster) * inertia)) + "px";
+ function newPos(xpos, windowHeight, pos, adjuster, inertia){
+ return xpos + " " + Math.round((-((windowHeight + pos) - adjuster) * inertia)) + "px";
}
//function to be called whenever the window is scrolled or resized

0 comments on commit 1ee33a2

Please sign in to comment.