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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user