swapped || order

This commit is contained in:
Georg G 2015-05-27 16:18:08 +02:00
parent 62d145fce7
commit b1ad14caf0
1 changed files with 1 additions and 1 deletions

View File

@ -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) ->