aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2023-09-14 13:54:50 -0400
committergeireann <geireann.lindfield@gmail.com>2023-09-14 13:54:50 -0400
commit356b520e4e05e522ca71f531618b8be256d6682f (patch)
tree06fc2967c2005da802e5a8c1e116f6f121934ddf /src
parent0366ed509484a7135b0700bfc9e711489a3a2467 (diff)
turned off pointer events in dataviz boxes when not active.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.scss3
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.tsx3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.scss b/src/client/views/nodes/DataVizBox/DataVizBox.scss
index a69881b7c..385ef5a1b 100644
--- a/src/client/views/nodes/DataVizBox/DataVizBox.scss
+++ b/src/client/views/nodes/DataVizBox/DataVizBox.scss
@@ -7,6 +7,9 @@
display: flex;
flex-direction: row;
}
+ .button-container {
+ pointer-events: unset;
+ }
}
.start-message {
margin: 10px;
diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
index b9db5fe15..8f32e2ba4 100644
--- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx
+++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
@@ -174,6 +174,9 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
) : (
<div
className="dataViz"
+ style={{
+ pointerEvents: this.props.isContentActive() === true ? "all" : "none"
+ }}
onWheel={e => e.stopPropagation()}
ref={r =>
r?.addEventListener(