1
0
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:
Chris Fairclough 2020-01-30 13:47:53 +00:00
parent 34b9838d15
commit cc4940b413

View File

@ -79,7 +79,7 @@ namespace XNodeEditor {
ValidateGraphEditor();
if (graphEditor != null && NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
dragThreshold = Screen.width / 1000f;
dragThreshold = Math.Max(1f, Screen.width / 1000f);
}
[InitializeOnLoadMethod]