remove useless code on mouse move (minor bug still exists)