Partial scroll bar implementation

This commit is contained in:
elasota
2020-03-10 01:35:42 -04:00
parent 699c3cf13c
commit ed7f8783c0
6 changed files with 271 additions and 8 deletions

View File

@@ -20,8 +20,12 @@ int FindControl(Point point, WindowPtr window, PortabilityLayer::Widget **outCon
const Rect widgetRect = widget->GetRect();
if (widgetRect.Contains(point))
{
*outControl = widget;
return kControlButtonPart;
int part = widget->ResolvePart(point);
if (part != 0)
{
*outControl = widget;
return part;
}
}
}