fixed mouse event bug for firefox