escrin / nftrout

A fish NFT breeding game with secret genetics known by nobody.
https://nftrout.com
MIT License
4 stars 0 forks source link

Aquarium Mode: Foreign Trout #15

Open Lemaus123 opened 8 months ago

Lemaus123 commented 8 months ago

When I activate aquarium mode, I have foreign trout that appear and disappear when I exit full screen. I noticed the same behavior when I open the browser's dev tools.

I'm using Brave.

https://github.com/escrin/nftrout/assets/115738837/f5863ab7-d59f-4b9f-8ba9-5b4d6d3f0629

Thanks for Sapphire.

nhynes commented 8 months ago

Ah, that's an interesting edge case you've found. The aquarium dynamically adjusts the trout that are shown based on screen size to keep things from getting cluttered, but there's a debounce delay set to prevent hundreds of updates per second crashing the page when dragging to resize. I think I can fix this by setting a second delay or periodically refreshing the count. Thanks for discovering and reporting this issue!