mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Partial scroll bar implementation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user