1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Minor tweaks and fixes to panning

This commit is contained in:
kobewi
2022-01-23 13:49:53 +01:00
parent c3d28ffa74
commit 98692d68c3
19 changed files with 47 additions and 49 deletions

View File

@@ -1356,7 +1356,7 @@ void GraphEdit::gui_input(const Ref<InputEvent> &p_ev) {
}
}
void GraphEdit::_scroll_callback(Vector2 p_scroll_vec) {
void GraphEdit::_scroll_callback(Vector2 p_scroll_vec, bool p_alt) {
if (p_scroll_vec.x != 0) {
h_scroll->set_value(h_scroll->get_value() + (h_scroll->get_page() * Math::abs(p_scroll_vec.x) / 8) * SIGN(p_scroll_vec.x));
} else {