1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Merge pull request #8920 from pixelpicosean/scroll-to-pan-canvas-item-editor

Add settings to pan canvas editor instead of zoom with mouse/touchpad scrolling
This commit is contained in:
Rémi Verschelde
2017-06-09 10:49:25 +02:00
committed by GitHub
2 changed files with 65 additions and 18 deletions

View File

@@ -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");