fix mousemove event on safari and firefox