Skip to content

Bug: timeout interrupt #2

@nsrazdan

Description

@nsrazdan

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions