summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-01 01:33:58 +0200
committerAlon Levy <alon@pobox.com>2015-03-01 01:34:06 +0200
commite805f037e95d9ed4fe4529aea0546496ddf188a4 (patch)
tree83380ec4a39355b6ad8a60518db66d018a145f04 /src/client/view/graph_view.js
parentd3faeac2ef07e4c5817adc0cdf9ecd1ede2e7af4 (diff)
client/graph_view: use transition when setting zoom for visibility
Fixes #339
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index df94d6b2..750e3386 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -611,7 +611,7 @@ function GraphView(spec) {
y_translate !== current_translate[1]) {
zoom_obj.translate([x_translate, y_translate]);
zoom_obj.scale(min_scale);
- zoom_obj.event(zoom_obj_element);
+ zoom_obj.event(zoom_obj_element.transition().duration(200));
}
}