Fix Spinbox display does not round properly when using decimal custom arrow steps

This commit is contained in:
shahriarlabib000 2024-09-28 12:05:17 +06:00
parent 76a135926a
commit afeecad92e
2 changed files with 34 additions and 6 deletions

View file

@ -66,6 +66,7 @@ class SpinBox : public Range {
String suffix;
String last_updated_text;
double custom_arrow_step = 0.0;
bool use_custom_arrow_step = false;
void _line_edit_input(const Ref<InputEvent> &p_event);
@ -133,6 +134,7 @@ class SpinBox : public Range {
void _mouse_exited();
void _update_buttons_state_for_current_value();
void _set_step_no_signal(double p_step);
protected:
virtual void gui_input(const Ref<InputEvent> &p_event) override;