From cc4940b413b3f3538843de979595aa8c819d4311 Mon Sep 17 00:00:00 2001 From: Chris Fairclough Date: Thu, 30 Jan 2020 13:47:53 +0000 Subject: [PATCH] dont use less than 1 as a drag threshold --- Scripts/Editor/NodeEditorWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Editor/NodeEditorWindow.cs b/Scripts/Editor/NodeEditorWindow.cs index ec68331..f180528 100644 --- a/Scripts/Editor/NodeEditorWindow.cs +++ b/Scripts/Editor/NodeEditorWindow.cs @@ -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]