From 92df118bf77da59a8f350829077846f179d9634c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 28 Oct 2014 19:16:47 +0200 Subject: history/rhizicore: record zoom events; zoom g element selector: svg g.zoom --- scripts/rhizicore.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/rhizicore.js') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index a8b091cc..a1eba12e 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -445,7 +445,8 @@ function myGraph(el) { .attr("height", '100%') .attr("pointer-events", "all") .call(zoomObject) - .append("g"); + .append("g") + .attr("class", "zoom"); // TODO: why do we need this huge overlay (hugeness also not constant) vis.append("rect") @@ -569,7 +570,7 @@ function myGraph(el) { function set_user(user) { this.user = user; - this.history = new History(this.user, $('svg')); + this.history = new History(this.user, $('svg g.zoom')[0]); console.log('new user: ' + user); } this.set_user = set_user; -- cgit v1.3.1