1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

add gui_drag_threshold for viewports

This commit is contained in:
hannes
2025-09-04 05:43:10 +02:00
parent ab6c6eece8
commit 89aa5137b8
6 changed files with 29 additions and 1 deletions

View File

@@ -4414,6 +4414,9 @@ int Main::start() {
bool snap_controls = GLOBAL_GET("gui/common/snap_controls_to_pixels");
sml->get_root()->set_snap_controls_to_pixels(snap_controls);
int drag_threshold = GLOBAL_GET("gui/common/drag_threshold");
sml->get_root()->set_drag_threshold(drag_threshold);
bool font_oversampling = GLOBAL_GET("gui/fonts/dynamic_fonts/use_oversampling");
sml->get_root()->set_use_oversampling(font_oversampling);