Fix 2D Pan Tool
This commit is contained in:
parent
33960b3b87
commit
342a31e326
3 changed files with 14 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue