mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 10:18:26 +07:00
* After a zoom gesture the World Screen needs to be updated
This commit is contained in:

committed by
Yair Morgenstern

parent
32621b6611
commit
6598c76041
@ -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
|
||||
|
Reference in New Issue
Block a user