mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
fix rightButtonDrag edge case
This commit is contained in:
@@ -108,6 +108,9 @@ void MapViewActions::mouseDragged(const Point & cursorPosition, const Point & la
|
|||||||
|
|
||||||
void MapViewActions::mouseDraggedPopup(const Point & cursorPosition, const Point & lastUpdateDistance)
|
void MapViewActions::mouseDraggedPopup(const Point & cursorPosition, const Point & lastUpdateDistance)
|
||||||
{
|
{
|
||||||
|
if(!settings["adventure"]["rightButtonDrag"].Bool())
|
||||||
|
return;
|
||||||
|
|
||||||
dragActive = true;
|
dragActive = true;
|
||||||
owner.onMapSwiped(lastUpdateDistance);
|
owner.onMapSwiped(lastUpdateDistance);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user