only update the time after the mouse is released