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:
parent
6917e33ec3
commit
b8e40978a0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user