handle dom offset for mouse move