You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you scroll down on a tablet or phone using any mobile browser (Safari on iOS too) they changes UI and minimize URL bar. That leads to screen height change and so the resize function is called. I found it very anoiying since it is only changing height and not width, the result is the same. Is it somehow possible to check only width and if it's changed,then fire the function?
The text was updated successfully, but these errors were encountered:
functioncollage(){//do collagePlus};vartimer=null;varwidth=$(window).width();$(window).bind('resize',function(){if($(window).width()!=width){// hide all the images until we resize them$('.Collage').css('opacity',0.2);// set a timer to re-apply the pluginif(timer)clearTimeout(timer);timer=setTimeout(collage,250);width=$(window).width();}});
When you scroll down on a tablet or phone using any mobile browser (Safari on iOS too) they changes UI and minimize URL bar. That leads to screen height change and so the resize function is called. I found it very anoiying since it is only changing height and not width, the result is the same. Is it somehow possible to check only width and if it's changed,then fire the function?
The text was updated successfully, but these errors were encountered: