Avoid flicker on dragging