1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00

left mouse drag on advmap improvement

This commit is contained in:
Laserlicht
2025-10-02 21:14:32 +02:00
parent 076f7ba5b5
commit 2697f98d9f

View File

@@ -18,6 +18,7 @@
#include "../GameEngine.h"
#include "../gui/CursorHandler.h"
#include "../gui/MouseButton.h"
#include "../render/IScreenHandler.h"
#include "../CPlayerInterface.h"
#include "../adventureMap/CInGameConsole.h"
@@ -99,7 +100,7 @@ void MapViewActions::mouseDragged(const Point & cursorPosition, const Point & la
{
dragDistance += lastUpdateDistance;
if (dragDistance.length() > 16)
if ((dragDistance.length() * ENGINE->screenHandler().getInterfaceScalingPercentage() / 100) > 12)
dragActive = true;
if (dragActive && settings["adventure"]["leftButtonDrag"].Bool())