From 84e71258dceaea6a8fddeeccdc1a879e020da764 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 8 Oct 2014 22:36:39 +1300 Subject: [PATCH] Prevent mouse events from propagating through a video. --- OpenRA.Game/Widgets/VqaPlayerWidget.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.Game/Widgets/VqaPlayerWidget.cs b/OpenRA.Game/Widgets/VqaPlayerWidget.cs index 35b4d661bf..10731a1d27 100644 --- a/OpenRA.Game/Widgets/VqaPlayerWidget.cs +++ b/OpenRA.Game/Widgets/VqaPlayerWidget.cs @@ -124,6 +124,11 @@ namespace OpenRA.Widgets return true; } + public override bool HandleMouseInput(MouseInput mi) + { + return RenderBounds.Contains(mi.Location); + } + public void Play() { PlayThen(() => { });