small optimization on dragging