Hacky fix for LabelWidget eating our MouseMove events.

This commit is contained in:
Paul Chote
2011-01-04 14:42:38 +13:00
parent cc356bcfee
commit de562939d4

View File

@@ -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)
{