decrease default step size

This commit is contained in:
Ali Abid 2021-03-02 10:09:42 -08:00
parent 50de08b026
commit d9adbd0cef

View File

@ -292,7 +292,7 @@ class Slider(InputComponent):
self.maximum = maximum
if step is None:
difference = maximum - minimum
power = math.floor(math.log10(difference) - 1)
power = math.floor(math.log10(difference) - 2)
step = 10 ** power
self.step = step
self.default = minimum if default is None else default