From 03193e4f61e17a02e879f601540c64df7e53f7de Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 16 Nov 2020 20:42:24 +0200 Subject: [PATCH] Resolved #3071 - Disabled annoying camera momentum on Desktop --- core/src/com/unciv/ui/worldscreen/WorldMapHolder.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/com/unciv/ui/worldscreen/WorldMapHolder.kt b/core/src/com/unciv/ui/worldscreen/WorldMapHolder.kt index 18a1b7c2bc..27780304c9 100644 --- a/core/src/com/unciv/ui/worldscreen/WorldMapHolder.kt +++ b/core/src/com/unciv/ui/worldscreen/WorldMapHolder.kt @@ -1,5 +1,6 @@ package com.unciv.ui.worldscreen +import com.badlogic.gdx.Application import com.badlogic.gdx.Gdx import com.badlogic.gdx.Input import com.badlogic.gdx.graphics.Color @@ -36,6 +37,10 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap 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 class MoveHereButtonDto(val unitToTurnsToDestination: HashMap, val tileInfo: TileInfo)