1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Implemented tolerance for touch events

This commit is contained in:
Ivan Savenko
2023-09-06 01:06:01 +03:00
parent 9d4d2e0bae
commit 3973624278
11 changed files with 93 additions and 24 deletions

View File

@@ -263,6 +263,11 @@ bool CIntObject::receiveEvent(const Point & position, int eventType) const
return pos.isInside(position);
}
const Rect & CIntObject::getPosition() const
{
return pos;
}
void CIntObject::onScreenResize()
{
center(pos, true);