-
Notifications
You must be signed in to change notification settings - Fork 0
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
Selected highlighting #30
base: master
Are you sure you want to change the base?
Conversation
Here are Mike Bostock's thoughts on how do deal with mouseover and brushing in the same chart. In particular this: "A third possibility is to put the display elements on top of the brush, but to set the to pointer-events none when a capturing mousedown listener on a containing element is triggered. This should prevent the display elements from participating in pointer events while the mouse is down, but otherwise let them trigger mouseover and mouseout events. This is probably the simplest solution, but I haven’t tested it." So, put a listener on the svg that pulls the brush to the front on mousedown and then drop it back to the back on brush.end(). Then ditch the |
This article on bubbling vs. capturing events is going to be important too ... |
Can't get that 3rd approach to work for a click in a hex/point. The re-order happens after the click, so brush.start isn't triggering (since the click is on a hex, not the |
No description provided.