-
Notifications
You must be signed in to change notification settings - Fork 247
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
Pausing and changing speeds causes weird behaviour #102
Comments
I also had that with mine, also after the speed change I could not re-pause it. I changed the stopSpritz function (Around line 177) to this:
Which seems to remove these bugs. EDIT: Does not stop the flashing bug, but I have noticed that when you pause and press play again, the running variable gets reset to false and therefore starts a 2nd instance of the startSpritz function adding another timer in which is a few words behind/infront. Looking into a fix now |
The strange behaviour can be stopped by using the allready existing
|
solving issues Miserlou#102 and Miserlou#97 for the longer run it might be considered to have an global object 'spritz' with properties (i.e state running) and controling functions inside a closure instead of global variables and functions.
Replicate
It it is flashing a lot faster than 400 and sometimes maybe even refreshing some words.
The text was updated successfully, but these errors were encountered: