made resize event listener only available to non-touch devices