-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem:
- All functions that have a timeout will not get interrupted when a button is pressed.
- This is an issue, as the sorting animation will continue when a new array is generated, incorrectly coloring arrayBars sorted.
Potential Solution:
- Have the loop for animation and other timeout functions only run if some variable is true
- On button press, set the variable to false, interrupting the function
Metadata
Metadata
Assignees
Labels
No labels