Merge pull request #2457 from weaveworks/remove-double-click

Remove zoom on double-click
This commit is contained in:
David
2017-04-24 12:52:37 +02:00
committed by GitHub

View File

@@ -94,7 +94,9 @@ class ZoomWrapper extends React.Component {
setZoomTriggers(zoomingEnabled) {
if (zoomingEnabled) {
this.svg.call(this.zoom);
// use d3-zoom defaults but exclude double clicks
this.svg.call(this.zoom)
.on('dblclick.zoom', null);
} else {
this.svg.on('.zoom', null);
}