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

Select next/prev does not always select the expected note #56

Closed
viddo opened this issue Mar 1, 2017 · 0 comments
Closed

Select next/prev does not always select the expected note #56

viddo opened this issue Mar 1, 2017 · 0 comments
Labels

Comments

@viddo
Copy link
Owner

viddo commented Mar 1, 2017

Steps to reproduce

  1. Open first three notes (i.e. select, focus on editor to open text editor)
  2. Click on the first note (should now be selected)
  3. three times "quickly" -- but not too quickly, ~10-50ms

Expected behavior:

Should preview the 3rd note

Actual behavior:

Previewing the 2rd note

Investigation

It appears to be some kind of race condition related to selection and the https://github.com/viddo/atom-textual-velocity/blob/bb2ba0147866aaf05acac89a43b78c4d8f1d99e9/lib/epics/active-pane-item.js epic which observes the pane changes. For some reason it triggers an event for the 2nd pane item even though in theory it should be debounced when the 3rd item is selected.

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

No branches or pull requests

1 participant