From 6ecbba137e9faf319e135338a7c5d81e0d6f7aa1 Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 4 Oct 2021 16:22:13 +0200 Subject: [PATCH] Reduced wheel sensitivity in Workflow UI and slightly fixed sidebar view --- frontend/src/views/AngularWorkflow.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 3a2b60a6..437d3ef1 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -4862,6 +4862,9 @@ const AngularWorkflow = (props) => { right: 25, height: "80vh", width: 350, + minWidth: 200, + maxWidth: 600, + maxHeight: "100vh", border: "1px solid rgb(91, 96, 100)", zIndex: 1000, borderRadius: theme.palette.borderRadius, @@ -8667,7 +8670,8 @@ const AngularWorkflow = (props) => { elements={elements} minZoom={0.35} maxZoom={2.00} - style={{width: bodyWidth-leftBarSize-15, height: bodyHeight-appBarSize-5, backgroundColor: surfaceColor}} + wheelSensitivity={0.25} + style={{width: bodyWidth-leftBarSize-5, height: bodyHeight-appBarSize-5, backgroundColor: surfaceColor}} stylesheet={cystyle} boxSelectionEnabled={true} autounselectify={false}