$(window).resize(function(){
console.log('resize');
setheight();
});
I just want to activate when user actually resize the window by draging the edge of the window but not zooming, but it actually activate the function while zoom in and zoom out, how to prevent that??
The resize event is sent to the window element when the size of the browser window changes.However when we zoom in/out the size of the browser changes so the resize event is fired.