prevent resize code from being executed on devices where resize event is fired on scrolling. See issue and fix at http://stackoverflow.com/questions/17328742/mobile-chrome-fires-resize-event-on-scroll