Update values on mousemove and mousedown