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

[#70] Fix picking point infinite loop #71

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

mauriciofierrom
Copy link
Owner

Closes #70

  • Remove race condition caused by interval in loop checking being too high
  • Debounce the udpatePoints function to prevent trackpad usage from triggering too many events which causes race conditions. Also, wait for any previous loop to be fully stopped before starting another
  • Extract a function to pick what range should be looped when setting a point (start/end)
  • Add more messages to aid with debugging in the future
  • Update test. We now mock the loop manager in certain tests to avoid issues with promises not running

@mauriciofierrom mauriciofierrom changed the title [#70] Fix picking point weird loop [#70] Fix picking point infinite loop Jul 29, 2024
- Remove race condition caused by interval in loop checking being too
  high
- Debounce the udpatePoints function to prevent trackpad usage from
  triggering too many events which causes race conditions. Also wait for
  any previous loop to be fully stopped before starting another
- Extract a function to pick what range should be looped when setting a
  point (start/end)
- Add more messages to aid with debugging in the future
- Update test. We now mock the loop manager in certain tests to avoid
  issues with promises not running
@mauriciofierrom mauriciofierrom force-pushed the 70-fix-picking-point-infinite-loop branch from b6d1108 to a9e58be Compare July 29, 2024 20:28
@mauriciofierrom mauriciofierrom merged commit 9e59e96 into main Jul 29, 2024
1 check passed
@mauriciofierrom mauriciofierrom deleted the 70-fix-picking-point-infinite-loop branch July 29, 2024 20:32
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

Successfully merging this pull request may close these issues.

Picking point infinite loop
1 participant