Merge pull request #58135 from timothyqiu/shortcut-zoom-mouse-pos-3.x
This commit is contained in:
commit
74b698b817
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue