fixed typo
prevent scrolling if window is smaller than game