- prevent infinite loop when resizing window down