Merge pull request #70800 from KoBeWi/kill_wheel

Get rid of mouse wheel switch in scene tabs
This commit is contained in:
Rémi Verschelde 2023-06-01 00:40:18 +02:00
commit 1634a2ba72
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -5619,16 +5619,6 @@ void EditorNode::_scene_tab_input(const Ref<InputEvent> &p_input) {
scene_tabs_context_menu->reset_size();
scene_tabs_context_menu->popup();
}
if (mb->get_button_index() == MouseButton::WHEEL_UP && mb->is_pressed()) {
int previous_tab = editor_data.get_edited_scene() - 1;
previous_tab = previous_tab >= 0 ? previous_tab : editor_data.get_edited_scene_count() - 1;
_scene_tab_changed(previous_tab);
}
if (mb->get_button_index() == MouseButton::WHEEL_DOWN && mb->is_pressed()) {
int next_tab = editor_data.get_edited_scene() + 1;
next_tab %= editor_data.get_edited_scene_count();
_scene_tab_changed(next_tab);
}
}
}