Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#22·VoxelSpace

When screen is wider than 800px render width is caped at 800 px

Author: DaynvheurCreated Apr 26, 2024Updated Apr 26, 2024

https://github.com/s-macke/VoxelSpace/blob/60d7ae12f232f940805afafd5720fa908c173833/VoxelSpace.html#L497

Expected code may be:

screendata.canvas.width = window.innerWidth<800?800:window.innerWidth;

Why the 800px hard limit?

Source: s-macke/VoxelSpace

View original on GitHubView discussion on GitHub