mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-24 08:30:02 +00:00
Some code changed with Clang-Tidy
This commit is contained in:
@@ -140,19 +140,17 @@ void ScrollContainer::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||
_cancel_drag();
|
||||
}
|
||||
|
||||
if (true) {
|
||||
drag_speed = Vector2();
|
||||
drag_accum = Vector2();
|
||||
last_drag_accum = Vector2();
|
||||
drag_from = Vector2(h_scroll->get_value(), v_scroll->get_value());
|
||||
drag_touching = OS::get_singleton()->has_touchscreen_ui_hint();
|
||||
drag_touching_deaccel = false;
|
||||
beyond_deadzone = false;
|
||||
drag_speed = Vector2();
|
||||
drag_accum = Vector2();
|
||||
last_drag_accum = Vector2();
|
||||
drag_from = Vector2(h_scroll->get_value(), v_scroll->get_value());
|
||||
drag_touching = OS::get_singleton()->has_touchscreen_ui_hint();
|
||||
drag_touching_deaccel = false;
|
||||
beyond_deadzone = false;
|
||||
time_since_motion = 0;
|
||||
if (drag_touching) {
|
||||
set_physics_process_internal(true);
|
||||
time_since_motion = 0;
|
||||
if (drag_touching) {
|
||||
set_physics_process_internal(true);
|
||||
time_since_motion = 0;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user