From de562939d4417d16c7ea61669c57fb9087f4388a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 4 Jan 2011 14:42:38 +1300 Subject: [PATCH] Hacky fix for LabelWidget eating our MouseMove events. --- OpenRA.Game/Widgets/Widget.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index 0614e6e968..91ad7f22aa 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -194,7 +194,9 @@ namespace OpenRA.Widgets return EventBounds.Contains(pos.ToPoint()) ? GetCursor(pos) : null; } - public virtual bool HandleInputInner(MouseInput mi) { return !ClickThrough && mi.Button == MouseButton.Left; } + // Hack: Don't eat mouse input that others want + // TODO: Solve this properly + public virtual bool HandleInputInner(MouseInput mi) { return !ClickThrough && mi.Button == MouseButton.Left && mi.Event != MouseInputEvent.Move; } public static bool HandleInput(MouseInput mi) {