From 6eca08fe1ea281dc350e87669e9c4663c9ffe52a Mon Sep 17 00:00:00 2001 From: Daan Aikema Date: Tue, 5 Apr 2016 10:16:41 +0200 Subject: [PATCH] Update jquery.parallax-1.1.3.js Made the parallax speedfactor adjust the current position parameter, not the initial position parameter --- scripts/jquery.parallax-1.1.3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jquery.parallax-1.1.3.js b/scripts/jquery.parallax-1.1.3.js index f3569dc..4142f60 100644 --- a/scripts/jquery.parallax-1.1.3.js +++ b/scripts/jquery.parallax-1.1.3.js @@ -59,7 +59,7 @@ http://www.gnu.org/licenses/gpl.html return; } - $this.css('backgroundPosition', xpos + " " + Math.round((firstTop - pos) * speedFactor) + "px"); + $this.css('backgroundPosition', xpos + " " + Math.round(firstTop - (pos * speedFactor)) + "px"); }); }