Add workaround for Firefox events glitch