You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Utilize mouse position when zooming with shortcuts in 2D editor
This commit is contained in:
@@ -4686,7 +4686,7 @@ void CanvasItemEditor::_button_zoom_plus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CanvasItemEditor::_shortcut_zoom_set(float p_zoom) {
|
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) {
|
void CanvasItemEditor::_button_toggle_smart_snap(bool p_status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user