mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:34:24 +07:00
fix: Scroll position indicators do not block minimap clicks
This commit is contained in:
parent
f018b78f83
commit
f791b70997
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user