diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-02-09 16:44:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 16:44:56 +0100 |
commit | 5c1295dc20323ee1596369b5bcf91ba6a9383336 (patch) | |
tree | bf4c8229c0c9c837211181ba179d6b29990b7a49 /scene/gui | |
parent | cd7c65ab676606f234721862442109d3bde08460 (diff) | |
parent | ca4bc8de81626993375c07d00e10de287a9ab798 (diff) |
Merge pull request #72884 from groud/fix_trackpad_viewpanner
Fix panning via InputEventPanGesture
Diffstat (limited to 'scene/gui')
-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; |