implement onTap and remove memory leaks

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-06-09 22:36:56 +02:00
parent d7fbbcc869
commit f875f7832f
4 changed files with 43 additions and 16 deletions

View File

@@ -231,11 +231,7 @@ void Device::ReleaseTap(const SDL_MouseButtonEvent *event) const
for (const auto &child : m_children)
{
if (child->IsHit(static_cast<int>(event->x), static_cast<int>(event->y)))
{
child->ReleaseTap(static_cast<int>(event->x), static_cast<int>(event->y));
break;
}
child->ReleaseTap(static_cast<int>(event->x), static_cast<int>(event->y));
}
}