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: if no next interact was present, we would not get events #47

Merged
merged 2 commits into from
Mar 31, 2021

Conversation

maartenbreddels
Copy link
Collaborator

This was because the display:none caused us to not have any events.
The reason to add this is to not 'eat' mouse events from the 'next'
interact. However, a better solution is to have the 'next', be added
second in the DOM.

Fixes glue-viz/glue-jupyter#213 for when next is set to None

This was because the display:none caused us to not have any events.
The reason to add this is to not 'eat' mouse events from the 'next'
interact. However, a better solution is to have the 'next', be added
second in the DOM.
@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #47 (9fcf3ca) into master (e6a1099) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #47   +/-   ##
=======================================
  Coverage   58.00%   58.00%           
=======================================
  Files           5        5           
  Lines         100      100           
=======================================
  Hits           58       58           
  Misses         42       42           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6a1099...9fcf3ca. Read the comment docs.

We did not clean up the next view, leaving the interact basically attached.
But when removing, all other events from other listeners were removed
because that is how d3.on works if you don't use namespaced event names.
@maartenbreddels
Copy link
Collaborator Author

Some cleanups and namespaced events solves all issues for glue-viz/glue-jupyter#213

Copy link
Member

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great, thanks!

@astrofrog astrofrog merged commit fc2c272 into glue-viz:master Mar 31, 2021
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.

2 participants