Fix serious input regression.

This commit is contained in:
Dean Herbert 2017-03-16 22:09:35 +09:00
parent 2cf6ed423e
commit 8cd1353d74
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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");