jparallax icon indicating copy to clipboard operation
jparallax copied to clipboard

huge number of analysis error (using firefox)

Open cbesot opened this issue 13 years ago • 1 comments

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"

cbesot avatar Oct 25 '10 18:10 cbesot

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.

Dartcode avatar May 21 '11 13:05 Dartcode