You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The minimum distance the mouse cursor must move while pressed before a drag operation begins in the default viewport. For custom viewports see [member Viewport.gui_drag_threshold].
If [code]true[/code], sub-windows (popups and dialogs) will be embedded inside application window as control-like nodes. If [code]false[/code], they will appear as separate windows handled by the operating system.
Copy file name to clipboardExpand all lines: scene/main/viewport.h
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -401,6 +401,7 @@ class Viewport : public Node {
401
401
bool drag_successful = false;
402
402
Control *target_control = nullptr; // Control that the mouse is over in the innermost nested Viewport. Only used in root-Viewport and SubViewports, that are not children of a SubViewportContainer.
403
403
bool embed_subwindows_hint = false;
404
+
int drag_threshold = 10;
404
405
405
406
Window *subwindow_focused = nullptr;
406
407
Window *currently_dragged_subwindow = nullptr;
@@ -706,6 +707,9 @@ class Viewport : public Node {
0 commit comments