From f8bf6256d9bdd99851066fdf1cf19e7785ab5564 Mon Sep 17 00:00:00 2001 From: Gualdimar Date: Thu, 2 Mar 2023 20:25:44 +0200 Subject: [PATCH] DragPaintListener fix (#8789) --- .../src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt b/core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt index 7736691c48..7dc9f5fc17 100644 --- a/core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt +++ b/core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt @@ -169,7 +169,7 @@ class EditorMapHolder( } override fun touchDragged(event: InputEvent?, x: Float, y: Float, pointer: Int) { - if (!isDragging) { + if (!isDragging && !isPanning) { isDragging = true val deltaTime = System.currentTimeMillis() - touchDownTime if (deltaTime > 400) {