From b1ad14caf0eeb79eb104cb681ec12cf8782a0624 Mon Sep 17 00:00:00 2001 From: Georg G Date: Wed, 27 May 2015 16:18:08 +0200 Subject: [PATCH] swapped || order --- app/assets/javascripts/user.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/user.coffee b/app/assets/javascripts/user.coffee index b08b15f2..5985d652 100644 --- a/app/assets/javascripts/user.coffee +++ b/app/assets/javascripts/user.coffee @@ -79,7 +79,7 @@ if PARALLAX_PREFIX? HEADER_PARALLAX = -> header = $("#profile--header:not(.profile--no-header) img")[0] return unless header? - top = (document.body || document.documentElement).scrollTop * HEADER_PARALLAX_INERTIA + top = (document.documentElement || document.body).scrollTop * HEADER_PARALLAX_INERTIA header.style[PARALLAX_CSS] = "translate3d(0px, #{top}px, 0px)"; $(window).on "scroll", (event) ->