I have little issue with resizing of scene. When I am change the size of Chrome Browser, the scale of my window don’t change. When I refresh the page, the size of scene stay equal of my (See below).
I know that exist such function
- window.addEventListener( ‘resize’, onWindowResize, false );
, but my scene inside div, that include canvas:
I tried use the different variant of function that above:
- canvas.addEventListener( ‘resize’, onWindowResize, false );
In my code canvas embed into with id=“Scene3D”.
Can you help me solve this problem?