disabling pointer events on small screens