question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snow stops on my phone when I touch/scroll

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
hcodescommented, Dec 12, 2021

Fixed. Version 6.0.1.

0reactions
honzajavorekcommented, Dec 13, 2021

Awesome, thank you @hcodes! ❤️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found