diff options
author | Hakim <hakim.rouatbi@gmail.com> | 2023-04-12 19:47:43 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-24 16:52:25 +0200 |
commit | 756d809ef18224c4ade3d49bfb8120794533f049 (patch) | |
tree | 73e3ef539be53f6331854659698db96594b28002 | |
parent | ad5d7c2030bf44d54a854943d2a5f8a2a28ebe17 (diff) |
Change cursor consistently when panning in the 2D Editor
(cherry picked from commit f4edbe634182916fd785b0897b8f309a5b9cc5ae)
-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 4814b9ae3b..9522ab6e7e 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1239,6 +1239,7 @@ bool CanvasItemEditor::_gui_input_zoom_or_pan(const Ref<InputEvent> &p_event, bo 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(); + _update_cursor(); } if (panner_active) { |