Skip to content

Commit

Permalink
Merge pull request #2457 from weaveworks/remove-double-click
Browse files Browse the repository at this point in the history
Remove zoom on double-click
  • Loading branch information
davkal authored Apr 24, 2017
2 parents 0281d4a + 11d9903 commit 64fadf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/scripts/components/zoom-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 64fadf3

Please sign in to comment.