mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Added panning gesture, activated by mouse wheel press
This commit is contained in:
@@ -117,7 +117,7 @@ void MapView::onMapScrolled(const Point & distance)
|
||||
void MapView::onMapSwiped(const Point & viewPosition)
|
||||
{
|
||||
isSwiping = true;
|
||||
controller->setViewCenter(viewPosition, model->getLevel());
|
||||
controller->setViewCenter(model->getMapViewCenter() + viewPosition, model->getLevel());
|
||||
}
|
||||
|
||||
void MapView::onMapSwipeEnded()
|
||||
|
||||
Reference in New Issue
Block a user