I’ve a problem with resizing event. I wish to attach my custom listener which would update my three.js canvas whenever the main window size will change. I was trying to use global window object and add my custom listener in traditional way:
document.addEventListener('resize', onWindowResize(), false);
But it dosen’t seem to work.