Skip to content

Comments

Fix #152: pointerleave/click not consistently triggering#153

Open
mcraeynest wants to merge 1 commit intovasturiano:masterfrom
mcraeynest:master
Open

Fix #152: pointerleave/click not consistently triggering#153
mcraeynest wants to merge 1 commit intovasturiano:masterfrom
mcraeynest:master

Conversation

@mcraeynest
Copy link

This resolves two issues: (#152 / #36)

  • After hovering over a block, the block never shrinks back to its original size
  • For the click to trigger, you had to click twice on an element

It looks like re-inserting the element in the DOM breaks mouse interactions.

Compare here with the original MoveToFront implementation:
https://wbkd.github.io/d3-extended/moveToFront.js.html

I tested the demo page with 20.000 segments on a single line, and did notice any significant difference in performance.

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.

1 participant