You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Adds pan gesture to StateMachine editor
(cherry picked from commit e9bec0d76b)
This commit is contained in:
committed by
Rémi Verschelde
parent
9bbfa929bc
commit
0c1f88c769
@@ -402,6 +402,12 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Ref<InputEv
|
|||||||
over_text = over_text_now;
|
over_text = over_text_now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Ref<InputEventPanGesture> pan_gesture = p_event;
|
||||||
|
if (pan_gesture.is_valid()) {
|
||||||
|
h_scroll->set_value(h_scroll->get_value() + h_scroll->get_page() * pan_gesture->get_delta().x / 8);
|
||||||
|
v_scroll->set_value(v_scroll->get_value() + v_scroll->get_page() * pan_gesture->get_delta().y / 8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationNodeStateMachineEditor::_file_opened(const String &p_file) {
|
void AnimationNodeStateMachineEditor::_file_opened(const String &p_file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user