Snap to the layer bounds when layer is not in viewport