From 26369ca2a98da0680481a097739309e3ad42fb9d Mon Sep 17 00:00:00 2001 From: Phil Palmer Date: Mon, 22 Feb 2021 22:34:04 -0500 Subject: [PATCH] Fix for some spinner boxes not changing value when using their buttons or the mouse wheel. Changed the default value of FloatPreference::_step from 0.1f to 1, because FloatPreference::_decimals defaults to 0. Also because before this branch, all spinners used a step of 1 rather than SpinnerPreference::_step. Spinners such as Settings > General > Desktop Tablet Scale / VR Tablet Scale work again. --- libraries/shared/src/Preferences.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/shared/src/Preferences.h b/libraries/shared/src/Preferences.h index 125cd0ae2c..a195dc457f 100644 --- a/libraries/shared/src/Preferences.h +++ b/libraries/shared/src/Preferences.h @@ -197,7 +197,7 @@ protected: uint _decimals { 0 }; float _min { 0 }; float _max { 1 }; - float _step { 0.1f }; + float _step { 1 }; }; class IntPreference : public Preference {