Jquery – Oppress $(WINDOW).RESIZE() in when scroll in mobile

I found that the $(window).resize() will be triggered when you scroll up/down the website on a mobile device. To prevent this happens, we could add a checking on the screen width.

Done

Reference: StackOverflow – javascript resize event on scroll – mobile