1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-15 13:33:36 +02:00

Update client/mapView/MapView.cpp

Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
Michael 2023-08-27 20:55:37 +02:00 committed by GitHub
parent b77bccdc24
commit 3960e5aa32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,8 @@ void MapView::onMapSwiped(const Point & viewPosition)
controller->setViewCenter(model->getMapViewCenter() + viewPosition, model->getLevel());
}
void MapView::postSwipe(uint32_t msPassed) {
void MapView::postSwipe(uint32_t msPassed)
{
if(!actions->dragActive)
{
if(swipeHistory.size() > 1)