jparallax
jparallax copied to clipboard
huge number of analysis error (using firefox)
In FF (3.6), thousand errors per second appears in error console (sorry, it's in french) : "Erreur d'analyse de la valeur pour "left". Déclaration abandonée" "Erreur d'analyse de la valeur pour "top". Déclaration abandonée"
Same thing happens here on FF 4.0.1.
But it only happens when parallax layer has the exact same height (for top errors) or width (for left errors) as parallax port.
I get values such as "-234568699252828226662626.967458524562522552%" or "Nan" for top or left.
I'm not skilled enough to modify the code to add a check, so the best way I found to avoid this error spitting is to add "xparallax: false" and/or "yparallax: false" to those specific layers.