Merge pull request #58135 from timothyqiu/shortcut-zoom-mouse-pos-3.x

This commit is contained in:
Rémi Verschelde 2022-02-23 13:26:21 +01:00 committed by GitHub
commit 74b698b817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4690,7 +4690,7 @@ void CanvasItemEditor::_button_zoom_plus() {
}
void CanvasItemEditor::_shortcut_zoom_set(float p_zoom) {
_zoom_on_position(p_zoom * MAX(1, EDSCALE), viewport_scrollable->get_size() / 2.0);
_zoom_on_position(p_zoom * MAX(1, EDSCALE), viewport->get_local_mouse_position());
}
void CanvasItemEditor::_button_toggle_smart_snap(bool p_status) {