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

fix bug with unhover in gl2d #1753

Merged
merged 1 commit into from
Jun 2, 2017
Merged

Conversation

alexcjohnson
Copy link
Collaborator

While working on axis constraints by restricting domain, I found that a bunch of tests were failing locally for me, consistently, on master as well as my branch. Most just needed increased tolerances so I'll just include them in the constraints PR. But this one, "scattergl after visibility restyle", pointed to a real bug in gl2d: if you mouseout of the gl2d plot while hovering on a point, it will not unhover.

@etpinard I guess in principle this should be an independent PR into master (in which case it would also need another commit from my branch that cleaned up the test suite so I could see where the failure was) but I need it in my constrain-domain branch to get tests to pass and somehow noone else encountered this error?

It would also be nice eventually if the mouse-change package would handle this itself somehow, rather than just calling its clearState that's indistinguishable from a real hover event. But for now it seemed like we should handle this within the gl2d scene.

if you mouseout of the gl2d plot while hovering on a point,
this ensures that unhover will be triggered.
prior to this the test "scattergl after visibility restyle"
consistently failed for me locally
@etpinard
Copy link
Contributor

etpinard commented Jun 2, 2017

Looks good! Thanks for the fix! 💃 when you feel like it.

@alexcjohnson alexcjohnson merged commit c654063 into constrain-domain Jun 2, 2017
@alexcjohnson alexcjohnson deleted the gl2d-mouseout branch June 2, 2017 14:06
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.

None yet

2 participants