Closed jacomyal closed 7 months ago
The reason behind this bug is that the node sizes are not properly indexed in the quadtree: https://github.com/jacomyal/sigma.js/blob/6417696f7ceb7fefb861b2de95da2b4e535d4e27/src/sigma.ts#L817
The data.size / this.width
is not the size of the node in the same coordinates system as the positions. Also, the bug can be even worse when zooming out, because the nodes are relatively bigger.
Once #1382 is dealt with, this issue will be solved.
Any updates on this issue? Would be very much appreciated!
@krkryger This bug is solved in the v3 branch, so if you migrate to the 3.0.0-beta.5 version, it will not occur anymore.
I waited this new version to reply because, in the 3.0.0-beta.4, another bug with similar symptoms was occurring...
I use this occasion to close this ticket, since it is actually solved.
Sometimes sigma does not properly detect which node is under the mouse cursor.
Steps to reproduce
Valjean
node, from the left, until the cursor is under the letter n of the label of the nodeMlleGillenormand
(as in the captureabove)Expected behavior
The
Valjean
node should be displayed as hovered, and the events log should displayEvent "enterNode", node Valjean (id "11.0")
.Actual behavior
The
Valjean
node is displayed as not hovered, and the events log shows nothing.