1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Implemented pinch gesture to scale adventure map

This commit is contained in:
Ivan Savenko
2023-05-31 16:15:15 +03:00
parent a08ff1e6ef
commit 0f2a339ab5
8 changed files with 92 additions and 6 deletions

View File

@@ -254,6 +254,15 @@ void EventDispatcher::dispatchGesturePanning(const Point & initialPosition, cons
}
}
void EventDispatcher::dispatchGesturePinch(const Point & initialPosition, double distance)
{
for(auto it : panningInterested)
{
if (it->isPanning())
it->gesturePinch(initialPosition, distance);
}
}
void EventDispatcher::dispatchMouseMoved(const Point & position)
{
EventReceiversList newlyHovered;