From 8cd1353d747b824709c1d3b92611cfc9cb2df81e Mon Sep 17 00:00:00 2001 From: Dean Herbert <pe@ppy.sh> Date: Thu, 16 Mar 2017 22:09:35 +0900 Subject: [PATCH] Fix serious input regression. --- osu.Game/Graphics/UserInterface/OsuTabControl.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/OsuTabControl.cs b/osu.Game/Graphics/UserInterface/OsuTabControl.cs index 05f154a407..02cd5d683a 100644 --- a/osu.Game/Graphics/UserInterface/OsuTabControl.cs +++ b/osu.Game/Graphics/UserInterface/OsuTabControl.cs @@ -3,6 +3,7 @@ using System; using System.Linq; +using OpenTK; using OpenTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; @@ -19,10 +20,10 @@ namespace osu.Game.Graphics.UserInterface protected override TabItem<T> CreateTabItem(T value) => new OsuTabItem<T> { Value = value }; + protected override bool InternalContains(Vector2 screenSpacePos) => base.InternalContains(screenSpacePos) || DropDown.Contains(screenSpacePos); + public OsuTabControl() { - AlwaysReceiveInput = true; - if (!typeof(T).IsEnum) throw new InvalidOperationException("OsuTabControl only supports enums as the generic type argument");