optimized mouse moving