fixed mouse event bug with firefox