From f791b70997c12b0f9d475867611fd3978400007c Mon Sep 17 00:00:00 2001 From: yairm210 Date: Wed, 11 Dec 2024 18:57:15 +0200 Subject: [PATCH] fix: Scroll position indicators do not block minimap clicks --- core/src/com/unciv/ui/screens/worldscreen/minimap/Minimap.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/screens/worldscreen/minimap/Minimap.kt b/core/src/com/unciv/ui/screens/worldscreen/minimap/Minimap.kt index 4daf0f7c4f..f2dcebcc2f 100644 --- a/core/src/com/unciv/ui/screens/worldscreen/minimap/Minimap.kt +++ b/core/src/com/unciv/ui/screens/worldscreen/minimap/Minimap.kt @@ -64,7 +64,7 @@ class Minimap(val mapHolder: WorldMapHolder, minimapSize: Int, private val civIn addActor(borderLayer) addActor(cityLayer) - val scrollIndicatorLayer = Group() + val scrollIndicatorLayer = Group().apply { touchable = Touchable.disabled } // Do not block! scrollIndicatorLayer.setSize(width, height) scrollPositionIndicators = createScrollPositionIndicators() scrollPositionIndicators.forEach(scrollIndicatorLayer::addActor)