Resolved #3071 - Disabled annoying camera momentum on Desktop

This commit is contained in:
Yair Morgenstern 2020-11-16 20:42:24 +02:00
parent 952e4cb958
commit 03193e4f61

View File

@ -1,5 +1,6 @@
package com.unciv.ui.worldscreen package com.unciv.ui.worldscreen
import com.badlogic.gdx.Application
import com.badlogic.gdx.Gdx import com.badlogic.gdx.Gdx
import com.badlogic.gdx.Input import com.badlogic.gdx.Input
import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.Color
@ -36,6 +37,10 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap
var unitActionOverlay :Actor?=null var unitActionOverlay :Actor?=null
init {
if (Gdx.app.type == Application.ApplicationType.Desktop) this.setFlingTime(0f)
}
// Used to transfer data on the "move here" button that should be created, from the side thread to the main thread // Used to transfer data on the "move here" button that should be created, from the side thread to the main thread
class MoveHereButtonDto(val unitToTurnsToDestination: HashMap<MapUnit,Int>, val tileInfo: TileInfo) class MoveHereButtonDto(val unitToTurnsToDestination: HashMap<MapUnit,Int>, val tileInfo: TileInfo)