Closed haheute closed 9 years ago
Is there a general difference between 'desktop firefox' and firefox mobile, perhaps a different javascript engine ?
I have tried with Windows 8 + firefox and archlinux/gnome + firefox which worked, and android + firefox on a fairphone and android + firefox on a samsung smartphone, which both produced a 'destroyed' image-collage. So I thought, there could be a difference between firefox and firefox for android, but I don't know where. Sorry if this is a bit offtopic.
it seems, that i had another function that called collage() before all images were loaded.
$(window).bind('resize', function() {
if($(window).width() != width){
//start collage
}
});
it should rearrange the photos, when the browser-window is resized, but i think it fired too early, perhaps because of scrollbars (?). I have built this around it, now it seems to work:
$(window).bind('load', function() {
//rearrange photos
});
Only on mobile firefox (android), I have the problem, that imagesLoaded with collagePlus does not seem to work right.
The collage is broken and it looks as if the function is fired before all images are loaded. I am not sure if the problem is imagesLoaded or the EventEmitter or eventie. collagePlus works without imagesLoaded, so I think it is perhaps not the problem.
here is my code:
The functions
collage
andrandcollage
(they are included before the other code without 'document ready function'):I only have problems with firefox on android. (here --> https://flavuur.de ) Does somebody have similar problems, or a solution?