Refine mouse movement