From 6710d3826320b85e4ae839da9631cd64e5c67a6d Mon Sep 17 00:00:00 2001 From: Lucano Vera Date: Fri, 5 Jul 2024 13:00:16 -0300 Subject: [PATCH] Fix data lineage mousewheel behvior (#5064) Co-authored-by: Lucano Vera --- clients/admin-ui/src/features/datamap/CytoscapeGraph.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clients/admin-ui/src/features/datamap/CytoscapeGraph.tsx b/clients/admin-ui/src/features/datamap/CytoscapeGraph.tsx index 855b555927..fbccd4a22b 100644 --- a/clients/admin-ui/src/features/datamap/CytoscapeGraph.tsx +++ b/clients/admin-ui/src/features/datamap/CytoscapeGraph.tsx @@ -16,6 +16,9 @@ const CytoscapeWrapper = dynamic(() => import("react-cytoscapejs"), { }); cytoscape.use(klay); +if (process.env.NODE_ENV !== "development") { + cytoscape.warnings(false); +} type UseCytoscapeGraphProps = { data: SpatialData; @@ -213,7 +216,7 @@ const CytoscapeGraph = ({ elements={elements} style={{ height: "100%", width: "100%", backgroundColor }} stylesheet={styleSheet} - // wheelSensitivity={0.085} // removed due to warning about only using this setting in highly controlled environments + wheelSensitivity={0.085} // before changing the value, test the behavior on a mouse and a trackpad layout={layoutConfig} />