Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.

Commit c405487

Browse files
rootroot
authored andcommitted
fix zoom
1 parent e9d916f commit c405487

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/src/components/GraphicsGrid.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ export default ({
7373
.attr("viewBox", [-width / 2, -height / 2, width, height])
7474
.call(d3.zoom().on("zoom", function () {
7575
svg.attr("transform", d3.event.transform)
76-
}))
76+
}))
77+
.on("mousedown.zoom", null)
78+
.on("touchstart.zoom", null)
79+
.on("touchmove.zoom", null)
80+
.on("touchend.zoom", null)
81+
7782
const root = d3.stratify()(data);
7883
const links = root.links();
7984
const nodes = root.descendants();

0 commit comments

Comments
 (0)