fix bugs when mouse dragging.