Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Make Adaptive 💪😎🤳 #20

Open
corners2wall opened this issue Jan 31, 2024 · 0 comments
Open

🤖 Make Adaptive 💪😎🤳 #20

corners2wall opened this issue Jan 31, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@corners2wall
Copy link
Owner

Hello everyone! This repo needs adaptive layout 👷💥💫

Description: for better user experience we should add adaptive layout. 💯📈

You should event listener:

window.addEventListener( 'resize', onWindowResize, false );

Base implementation of onWindowResizelooks like:

function onWindowResize(){
    camera.aspect = window.innerWidth / window.innerHeight;
    camera.updateProjectionMatrix();

    renderer.setSize( window.innerWidth, window.innerHeight );
}

JUST DO IT 💪💪💪
Good luck and have fun! 🧡

@corners2wall corners2wall added enhancement New feature or request good first issue Good for newcomers labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant