The site has a problem with the adaptability of the scene three js, I subscribe to the resizing of the window and prescribe renderer.setSize (canvas.width, canvas.height). But the scene is enlarged regardless of the window changes (down or up). Who can tell what the problem is?

Everything was tested in the Opera browser, windows system. Server on Node JS.

https://pastebin.com/uiVmwaVw 
  • And what does html look like? const renderer = new THREE.WebGLRenderer({canvas: canvas, antialias: true}); , here canvas is taken from html. - prisoner849
  • one
    Look at this answer here: stackoverflow.com/a/45046955/4045502 - prisoner849
  • Thank, helped - Yegor Ohotin
  • You 're welcome :) - prisoner849

0