mirror of
https://github.com/lavafroth/lavafroth.github.io.git
synced 2026-06-01 13:01:22 -03:00
dont respond to resizes
This commit is contained in:
@@ -370,15 +370,6 @@ void main() {
|
||||
|
||||
renderer.setAnimationLoop(animate);
|
||||
|
||||
window.addEventListener('resize', function() {
|
||||
width = window.innerWidth
|
||||
height = window.innerHeight
|
||||
camera.aspect = width / height;
|
||||
camera.updateProjectionMatrix();
|
||||
renderer.setSize(width, height);
|
||||
init = true;
|
||||
});
|
||||
|
||||
orbit.addEventListener('change', function() {
|
||||
init = true;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user