View.Mouse cleanup - Fixed combobox

This commit is contained in:
Tig
2024-10-15 06:56:53 -06:00
parent 1abe3182b6
commit 0a6ba8315b

View File

@@ -840,6 +840,14 @@ public class ComboBox : View, IDesignable
{
bool isMousePositionValid = IsMousePositionValid (me);
var res = false;
if (isMousePositionValid)
{
// We're derived from ListView and it overrides OnMouseEvent, so we need to call it
res = base.OnMouseEvent (me);
}
if (HideDropdownListOnClick && me.Flags == MouseFlags.Button1Clicked)
{
if (!isMousePositionValid && !_isFocusing)
@@ -872,7 +880,7 @@ public class ComboBox : View, IDesignable
return true;
}
return false;
return res;
}
public override void OnDrawContent (Rectangle viewport)