mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #2457 from weaveworks/remove-double-click
Remove zoom on double-click
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user