mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make dock tabs switch on button release
This commit is contained in:
parent
8105ff7ac7
commit
5a06774885
3 changed files with 5 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
|
|||
}
|
||||
}
|
||||
|
||||
if (mb->is_pressed()) {
|
||||
if (mb->is_pressed() != switch_on_release) {
|
||||
Point2 pos = mb->get_position();
|
||||
bool selecting = mb->get_button_index() == MouseButton::LEFT || (select_with_rmb && mb->get_button_index() == MouseButton::RIGHT);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue