mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
stop smooth scroll when using window borders to scroll
This commit is contained in:
@@ -122,7 +122,10 @@ void MapView::onMapLevelSwitched()
|
|||||||
void MapView::onMapScrolled(const Point & distance)
|
void MapView::onMapScrolled(const Point & distance)
|
||||||
{
|
{
|
||||||
if(!isGesturing())
|
if(!isGesturing())
|
||||||
|
{
|
||||||
|
postSwipeSpeed = 0.0;
|
||||||
controller->setViewCenter(model->getMapViewCenter() + distance, model->getLevel());
|
controller->setViewCenter(model->getMapViewCenter() + distance, model->getLevel());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::onMapSwiped(const Point & viewPosition)
|
void MapView::onMapSwiped(const Point & viewPosition)
|
||||||
|
|||||||
Reference in New Issue
Block a user