hcodes / snowflakes

❄️ Falling snowflakes
https://hcodes.github.io/snowflakes/examples/constructor
MIT License
356 stars 58 forks source link

When scrolling in mobile it re-renders once the address bar disappears #58

Closed tamirgilany closed 1 year ago

tamirgilany commented 2 years ago

For example (open in mobile and see that when you scroll and the navigation bar disappears it will re-render the snowflakes) https://tamirgilany.github.io/snowflakes_example/

alt text

TGilany commented 2 years ago

@hcodes think you can help with a quick fix for that?

Thanks!

strarsis commented 2 years ago

+1, is this a new bug? I plan to upgrade to latest magic-snowflakes.

TGilany commented 2 years ago

Hey @strarsis, Not sure if it was fixed or not in v6.0.0 but my project was using v5.0.0

Will check tomorrow if it's fixed with the new v6.0.0 and will update.

tamirgilany commented 2 years ago

Hey @strarsis, seems like I'm on the latest version v6.0.1

hcodes commented 1 year ago

v6.1.0

Use autoResize: false param.

new SnowFlakes({ autoResize: false });