Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snow speeds up randomly #20

Open
Jaex opened this issue Dec 24, 2014 · 2 comments
Open

Snow speeds up randomly #20

Jaex opened this issue Dec 24, 2014 · 2 comments

Comments

@Jaex
Copy link

Jaex commented Dec 24, 2014

In Chrome 39.0.2171.95 m (64-bit) when I switch tab of web page which have Snowstorm script with default settings and when little time later if I come back to that snowstorm tab then snow speeds up 2-3x and this happens in http://www.schillmania.com/projects/snowstorm/ or http://www.schillmania.com/projects/snowstorm/basic-example.html too.
If I unfocus chrome and re focus then speed returns back to normal.

Example recorded video: https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/12/1ANT12pzOv.mp4

I switch to example tab and snow is fast, then I unfocus and re focus chrome and snow speed returns back to normal speed.

Edit: Making snowStorm.freezeOnBlur = false; solves problem.

@fullstackfool
Copy link

This is still an issue in Chrome 70. Flicking away to a different tab and back progressively increases the speed of the wind/fall. Keep doing it enough and it actually wraps back round to the original speed 😆

@kennyrkun
Copy link

This is still an issue in Chrome 70. Flicking away to a different tab and back progressively increases the speed of the wind/fall. Keep doing it enough and it actually wraps back round to the original speed 😆

It will also return to the proper speed if the window loses/regains focus.

This issue is also present on Safari 17.1, but does not seem to be present in Firefox 120.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants