Fix to lock snapping on resize.