summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-07 23:58:48 +0200
committerAlon Levy <alon@pobox.com>2014-12-07 23:58:48 +0200
commit04266933f47ad46239ae3730bcf0fc7b6abf9926 (patch)
tree45e80eacd815ba202328a0ed499a504a7ed6bfe4 /src
parent487e60de4dcdaf6a6e9fb50373a7368d2e5801bc (diff)
remove overlay node, don't remember why it was needed and seems fine without it
Diffstat (limited to 'src')
-rw-r--r--src/rz_core.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/rz_core.js b/src/rz_core.js
index 43bfd7e9..a05c7243 100644
--- a/src/rz_core.js
+++ b/src/rz_core.js
@@ -259,14 +259,7 @@ var initDrawingArea = function () {
zoom_obj(d3.select('#canvas_d3'))
d3.select("svg").on("dblclick.zoom", null); // disable zoom on double click
- // TODO: why do we need this huge overlay (hugeness also not constant)
- vis.append("rect")
- .attr("class", "overlay graph")
- .attr("width", $(el).innerWidth() * 12)
- .attr("height", $(el).innerHeight() * 12)
- .attr("x", -$(el).innerWidth() * 5)
- .attr("y", -$(el).innerHeight() * 5);
- $('.overlay').click(overlay_mousedown);
+ $('svg').click(svg_click_handler);
// SVG rendering order is last rendered on top, so to make sure
// all links are below the nodes we group them under a single g
@@ -736,7 +729,7 @@ function showNodeInfo(d, i) {
});
}
-function overlay_mousedown(e) {
+function svg_click_handler(e) {
if (zoomInProgress) {
zoomInProgress = false;
return;