Merge pull request #72884 from groud/fix_trackpad_viewpanner

Fix panning via InputEventPanGesture
This commit is contained in:
Rémi Verschelde 2023-02-09 16:44:56 +01:00 committed by GitHub
commit 5c1295dc20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ bool ViewPanner::gui_input(const Ref<InputEvent> &p_event, Rect2 p_canvas_rect)
Ref<InputEventPanGesture> pan_gesture = p_event;
if (pan_gesture.is_valid()) {
callback_helper(pan_callback, varray(-pan_gesture->get_delta(), p_event));
callback_helper(pan_callback, varray(-pan_gesture->get_delta() * scroll_speed, p_event));
}
Ref<InputEventScreenDrag> screen_drag = p_event;