fix mouse event in Mozilla Firefox