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