added throttle to mouse move function