mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
dont use less than 1 as a drag threshold
This commit is contained in:
parent
34b9838d15
commit
cc4940b413
@ -79,7 +79,7 @@ namespace XNodeEditor {
|
|||||||
ValidateGraphEditor();
|
ValidateGraphEditor();
|
||||||
if (graphEditor != null && NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
if (graphEditor != null && NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
||||||
|
|
||||||
dragThreshold = Screen.width / 1000f;
|
dragThreshold = Math.Max(1f, Screen.width / 1000f);
|
||||||
}
|
}
|
||||||
|
|
||||||
[InitializeOnLoadMethod]
|
[InitializeOnLoadMethod]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user