From 2697f98d9f021686a84bc60790225e7d9e5b04c2 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Thu, 2 Oct 2025 21:14:32 +0200 Subject: [PATCH] left mouse drag on advmap improvement --- client/mapView/MapViewActions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/mapView/MapViewActions.cpp b/client/mapView/MapViewActions.cpp index 320df4e7d..4efb5be2e 100644 --- a/client/mapView/MapViewActions.cpp +++ b/client/mapView/MapViewActions.cpp @@ -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())