Snow stops on my phone when I touch/scroll
See original GitHub issueHi, thanks for an amazing library ❄️ I’m using it on this page https://junior.guru/gift/, the code looks like this:
import Snowflakes from 'magic-snowflakes';
document.addEventListener('DOMContentLoaded', function () {
const snow = document.getElementById('snow');
if (snow) {
const snowflakes = new Snowflakes({
color: '#fff',
container: document.getElementById('snow'),
count: 50,
minSize: 5,
maxSize: 15,
speed: 0.5
});
snowflakes.start();
}
});
On desktop it snows correctly, but on my iPhone X, it snows only if I steadily look at the top of the page. When I scroll, the snowflakes disappear. When I stop touching the display and stop scrolling, the snow continues, or better word is probably “restarts”, from the top. Do you have an idea what could be wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Why Should I Install Snow Stops on My Exposed-Fastened ...
The main reason to install snow stops or snow guards is to prevent snow from sliding off your roof. Many people mistakenly believe...
Read more >The Best Touchscreen Winter Gloves - The New York Times
Although no pair of touchscreen gloves is going to keep your hands perfectly warm or let you type as well as you would...
Read more >What are Snow Guards and Why Do I Need Them?
Snow guards for metal roofs are designed to protect your home and property from damages. Check out why snow guards for metal roofs...
Read more >I Have Snow Guards But Snow Still Comes Off My Roof
A question we see from time to time here at Rocky Mountain Snow Guards involves customers that have had snow guards installed and...
Read more >snow guards for metal roofs - Amazon.com
50 QTY Commercial Bulk Pack (Snow Guards, Perfect Seal Gaskets & Screws) - Stop Snow From Sliding Off Your Metal Roof Snow Guard...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed. Version 6.0.1.
Awesome, thank you @hcodes! ❤️