mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add settings to pan canvas item editor instead of zoom with mouse/touchpad scrolling.
This feature is mainly designed for developers who uses touchpad instead of mouse, and want to scroll instead of zoom. Every macOS developers will like it since it feels intuitive. 2 new settings are added to `2d_editor`: 1. `scroll_to_pan`: turn on to use mouse/touchpad scroll to pan canvas item editor view instead of zoom 2. `pan_speed`: use this value to change scroll speed
This commit is contained in:
@@ -596,6 +596,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
set("2d_editor/keep_margins_when_changing_anchors", false);
|
||||
|
||||
set("2d_editor/warped_mouse_panning", true);
|
||||
set("2d_editor/scroll_to_pan", false);
|
||||
set("2d_editor/pan_speed", 20);
|
||||
|
||||
set("game_window_placement/rect", 0);
|
||||
hints["game_window_placement/rect"] = PropertyInfo(Variant::INT, "game_window_placement/rect", PROPERTY_HINT_ENUM, "Default,Centered,Custom Position,Force Maximized,Force Full Screen");
|
||||
|
||||
Reference in New Issue
Block a user