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.
This commit is contained in:
Phil Palmer 2021-02-22 22:34:04 -05:00
parent a2e4b81ed8
commit 26369ca2a9

View file

@ -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 {