Fix event positions for Firefox