fix: Scroll position indicators do not block minimap clicks

This commit is contained in:
yairm210 2024-12-11 18:57:15 +02:00
parent f018b78f83
commit f791b70997

View File

@ -64,7 +64,7 @@ class Minimap(val mapHolder: WorldMapHolder, minimapSize: Int, private val civIn
addActor(borderLayer) addActor(borderLayer)
addActor(cityLayer) addActor(cityLayer)
val scrollIndicatorLayer = Group() val scrollIndicatorLayer = Group().apply { touchable = Touchable.disabled } // Do not block!
scrollIndicatorLayer.setSize(width, height) scrollIndicatorLayer.setSize(width, height)
scrollPositionIndicators = createScrollPositionIndicators() scrollPositionIndicators = createScrollPositionIndicators()
scrollPositionIndicators.forEach(scrollIndicatorLayer::addActor) scrollPositionIndicators.forEach(scrollIndicatorLayer::addActor)