prevent scrolling if window is smaller than game