Fixes improper aspect ratio during dragging and window resizing