From dec235231875333100d3c63e62bdca808153ed5b Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 10 Mar 2021 12:08:26 -0500
Subject: tweaks to sliderBox range to prevent it from not appearing, or not
 having draggable ends.

---
 src/client/views/nodes/SliderBox.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/nodes/SliderBox.tsx')

diff --git a/src/client/views/nodes/SliderBox.tsx b/src/client/views/nodes/SliderBox.tsx
index bfe07c22b..67f8aed3c 100644
--- a/src/client/views/nodes/SliderBox.tsx
+++ b/src/client/views/nodes/SliderBox.tsx
@@ -61,7 +61,7 @@ export class SliderBox extends ViewBoxBaseComponent<FieldViewProps, SliderDocume
                     }} >
                     <Slider
                         mode={2}
-                        step={1}
+                        step={Math.min(1, .1 * (domain[1] - domain[0]))}
                         domain={domain}
                         rootStyle={{ position: "relative", width: "100%" }}
                         onChange={this.onChange}
-- 
cgit v1.2.3-70-g09d2

