1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

stop smooth scroll when using window borders to scroll

This commit is contained in:
Laserlicht 2023-12-09 17:29:57 +01:00 committed by GitHub
parent 6917e33ec3
commit b8e40978a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,10 @@ void MapView::onMapLevelSwitched()
void MapView::onMapScrolled(const Point & distance)
{
if(!isGesturing())
{
postSwipeSpeed = 0.0;
controller->setViewCenter(model->getMapViewCenter() + distance, model->getLevel());
}
}
void MapView::onMapSwiped(const Point & viewPosition)