Make dock tabs switch on button release

This commit is contained in:
kobewi 2025-12-03 19:32:57 +01:00
parent 8105ff7ac7
commit 5a06774885
3 changed files with 5 additions and 1 deletions

View file

@ -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);