update doc on mouse move