diff options
author | Zuul <zuul@review.opendev.org> | 2022-08-17 02:56:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-08-17 02:56:17 +0000 |
commit | 15c2a42969011275304652df68cebe154a9126e6 (patch) | |
tree | ca99ff853851992f8c4f400030a0e5ccd0b86f1e | |
parent | 6d0d04560cb440015ec7357eb3dde09fd12dd739 (diff) | |
parent | af80f8dfdc7edbf65d69e969e8eb866987e66d21 (diff) | |
download | zuul-15c2a42969011275304652df68cebe154a9126e6.tar.gz |
Merge "Web: disable scroll wheel zoom in job graph"
-rw-r--r-- | web/src/containers/jobgraph/JobGraphDisplay.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/src/containers/jobgraph/JobGraphDisplay.jsx b/web/src/containers/jobgraph/JobGraphDisplay.jsx index 9bd67e7d2..e5cff9cbc 100644 --- a/web/src/containers/jobgraph/JobGraphDisplay.jsx +++ b/web/src/containers/jobgraph/JobGraphDisplay.jsx @@ -77,6 +77,10 @@ function GraphViz(props) { gv._originalTransform.y = val } + // Disable scroll wheel zooming because it interferes with window + // scrolling + gv.zoomSelection().on('wheel.zoom', null) + // Mutate the links to be internal links d3.select('.zuul-job-graph').selectAll('.node a').on('click', event => { d3.event.preventDefault() |