remove repeated pathfind when the mouse is down