Merge pull request #75997 from hakro/update-cursor-when-panning
Change cursor consistently when panning in the 2D Editor
This commit is contained in:
commit
4cfa718579
1 changed files with 1 additions and 0 deletions
|
@ -1240,6 +1240,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());
|
bool panner_active = panner->gui_input(p_event, warped_panning ? viewport->get_global_rect() : Rect2());
|
||||||
if (panner->is_panning() != pan_pressed) {
|
if (panner->is_panning() != pan_pressed) {
|
||||||
pan_pressed = panner->is_panning();
|
pan_pressed = panner->is_panning();
|
||||||
|
_update_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (panner_active) {
|
if (panner_active) {
|
||||||
|
|
Loading…
Reference in a new issue