fix navigator mouse events in firefox