mirror of
https://github.com/lockfale/OSINT-Framework.git
synced 2026-09-06 17:57:44 +02:00
fix(zoom): remove auto-pan on node click (THE-89)
zoomToNode(d) was called after every expand/collapse, causing jarring viewport jumps as the tree layout reflows node positions. Removing it lets users pan and zoom freely without unexpected repositioning. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ function update(source) {
|
||||
var nodeEnter = node.enter().append("g")
|
||||
.attr("class", "node")
|
||||
.attr("transform", function(d) { return "translate(" + source.y0 + "," + source.x0 + ")"; })
|
||||
.on("click", function(event, d) { toggle(d); update(d); zoomToNode(d); });
|
||||
.on("click", function(event, d) { toggle(d); update(d); });
|
||||
|
||||
nodeEnter.append("circle")
|
||||
.attr("r", 1e-6)
|
||||
|
||||
Reference in New Issue
Block a user