Skip to content

Fix index selector jumping back to 0#1426

Merged
martinRenou merged 2 commits intobqplot:masterfrom
martinRenou:fix_index_selector_jumping
Dec 10, 2021
Merged

Fix index selector jumping back to 0#1426
martinRenou merged 2 commits intobqplot:masterfrom
martinRenou:fix_index_selector_jumping

Conversation

@martinRenou
Copy link
Copy Markdown
Member

Fix #1422

@martinRenou martinRenou force-pushed the fix_index_selector_jumping branch from 2aab796 to ab354a8 Compare December 9, 2021 16:02
@martinRenou
Copy link
Copy Markdown
Member Author

This needs a test with Galata that changes the selection from Python and takes a screenshot

@martinRenou
Copy link
Copy Markdown
Member Author

I added a Galata test that is properly exposing the bug this PR is fixing:

Before

before

After

after

@martinRenou
Copy link
Copy Markdown
Member Author

As discussed during the weekly bqplot meeting, there might be another issue that is making #1422 issue worse, related to some trait bouncing between the back-end and the front-end.

Anyway this PR seems to fix #1422. I will investigate more on this trait bouncing and open a separate PR if I find another fix.

@martinRenou martinRenou force-pushed the fix_index_selector_jumping branch from 65fa796 to ed3f3bf Compare December 10, 2021 09:09
@martinRenou martinRenou merged commit 88ef976 into bqplot:master Dec 10, 2021
@martinRenou martinRenou deleted the fix_index_selector_jumping branch December 10, 2021 09:31
@martinRenou
Copy link
Copy Markdown
Member Author

@meeseeksdev please backport to 0.12.x

@martinRenou
Copy link
Copy Markdown
Member Author

Following up on the jumping issue. I don't seem to be able to reproduce the jumping (with the bqplot version prior to this PR) on a simple example like the one posted above. I seem to only reproduce the jumping in the code sample from the linked issue #1422.

What I believe is happening there is that there are some overlapping scatter points, and the index selector doesn't know which point to select, so it's jumping from one to the other. And because it used to set the position of the line back to 0 when the selection changes it was jumping.

martinRenou added a commit that referenced this pull request Dec 10, 2021
…6-on-0.12.x

Backport PR #1426 on branch 0.12.x (Fix index selector jumping back to 0)
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.

IndexSelector keep jumping

1 participant