* After a zoom gesture the World Screen needs to be updated
This commit is contained in:
r3versi
2019-12-21 18:35:27 +01:00
committed by Yair Morgenstern
parent 32621b6611
commit 6598c76041

View File

@ -92,6 +92,7 @@ class TileMapHolder(internal val worldScreen: WorldScreen, internal val tileMap:
override fun zoom(event: InputEvent?, initialDistance: Float, distance: Float) {
// deselect any unit, as zooming occasionally forwards clicks on to the map
worldScreen.bottomUnitTable.selectedUnit = null
worldScreen.shouldUpdate = true
if (lastInitialDistance != initialDistance) {
lastInitialDistance = initialDistance
lastScale = scaleX