mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix panning via InputEventPanGesture
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
parent
c4fb119f03
commit
ca4bc8de81
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user