From 3df9cc8a642398caef09f94d5a6e14d2ec3a46d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 15 Apr 2021 19:27:44 +0200 Subject: [PATCH] dont block on childrenMutex for checkHoverWidget --- Crow/src/Widgets/GroupBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Crow/src/Widgets/GroupBase.cs b/Crow/src/Widgets/GroupBase.cs index 33f26001..4c0267f8 100644 --- a/Crow/src/Widgets/GroupBase.cs +++ b/Crow/src/Widgets/GroupBase.cs @@ -288,7 +288,8 @@ namespace Crow #region Mouse handling public override void checkHoverWidget (MouseMoveEventArgs e) { base.checkHoverWidget (e);//TODO:check if not possible to put it at beginning of meth to avoid doubled check to DropTarget. - childrenRWLock.EnterReadLock (); + if (!childrenRWLock.TryEnterReadLock (10)) + return; for (int i = Children.Count - 1; i >= 0; i--) { if (Children[i].MouseIsIn (e.Position)) { Children[i].checkHoverWidget (e); -- 2.47.3