Implement mouse event propagation

This commit is contained in:
Magnus Norddahl 2024-01-10 23:06:05 +01:00 committed by Christoph Oelckers
commit 8cc531e283
18 changed files with 135 additions and 60 deletions

View file

@ -212,7 +212,7 @@ void LogViewer::OnPaint(Canvas* canvas)
}
}
void LogViewer::OnMouseWheel(const Point& pos, EInputKey key)
bool LogViewer::OnMouseWheel(const Point& pos, EInputKey key)
{
if (key == IK_MouseWheelUp)
{
@ -222,6 +222,7 @@ void LogViewer::OnMouseWheel(const Point& pos, EInputKey key)
{
ScrollDown(4);
}
return true;
}
void LogViewer::OnKeyDown(EInputKey key)