diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2023-02-08 11:44:24 +0100 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2023-02-08 12:01:20 +0100 |
commit | ca4bc8de81626993375c07d00e10de287a9ab798 (patch) | |
tree | 0010515fdb5d0097c9e1329948feee0f4613e284 /scene | |
parent | c4fb119f03477ad9a494ba6cdad211b35a8efcce (diff) |
Fix panning via InputEventPanGesture
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/view_panner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/view_panner.cpp b/scene/gui/view_panner.cpp index 145497fa61..51af886709 100644 --- a/scene/gui/view_panner.cpp +++ b/scene/gui/view_panner.cpp @@ -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; |