Upstreaming @gero3 dispatchEvent fix.
https://github.com/mrdoob/three.js/pull/4548