mirror of
https://github.com/godotengine/godot.git
synced 2024-12-14 15:14:41 +00:00
Fixed issues with slider focus and scroll input
(cherry picked from commit 707cf278a5
)
This commit is contained in:
parent
8a7d0d3ce0
commit
3b2c43312c
@ -74,8 +74,10 @@ void Slider::_gui_input(Ref<InputEvent> p_event) {
|
||||
}
|
||||
} else if (scrollable) {
|
||||
if (mb->is_pressed() && mb->get_button_index() == BUTTON_WHEEL_UP) {
|
||||
grab_focus();
|
||||
set_value(get_value() + get_step());
|
||||
} else if (mb->is_pressed() && mb->get_button_index() == BUTTON_WHEEL_DOWN) {
|
||||
grab_focus();
|
||||
set_value(get_value() - get_step());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user