Fix mouse event for firefox