private static EventType EndEventCheck()
{
EventType type = (s_EventTypeBefore == Event.current.GetTypeForControl(s_HotControl)) ? EventType.Ignore : s_EventTypeBefore;
s_EventTypeBefore = EventType.Ignore;
switch (type)
{
case EventType.MouseDown:
s_HotControl = GUIUtility.hotControl;
return type;
case EventType.MouseUp:
s_HotControl = 0;
return type;
}
return type;
}