Fix for Firefox synthetic events