diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-24 23:16:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 23:16:31 +0100 |
commit | 30701e3966fe0869868d09d57249ff140e55849e (patch) | |
tree | ca90cd57d157c61b3cd503c04f376ab1e06092dd /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | 672363f295495478ef7d03ea00878b8ebfbdb430 (diff) | |
parent | 342a31e3265508a3fc79b08053bf63be9ff2da51 (diff) |
Merge pull request #57155 from KoBeWi/drag_by_force
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 4093c70c47..1aae82f66f 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1117,6 +1117,7 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref<InputEvent> &p_eve } bool CanvasItemEditor::_gui_input_zoom_or_pan(const Ref<InputEvent> &p_event, bool p_already_accepted) { + panner->set_force_drag(tool == TOOL_PAN); bool panner_active = panner->gui_input(p_event, warped_panning ? viewport->get_global_rect() : Rect2()); if (panner->is_panning() != pan_pressed) { pan_pressed = panner->is_panning(); |