diff --git a/core/src/com/unciv/ui/components/input/ActivationListener.kt b/core/src/com/unciv/ui/components/input/ActivationListener.kt index 16cf63b12d..2f82e99eca 100644 --- a/core/src/com/unciv/ui/components/input/ActivationListener.kt +++ b/core/src/com/unciv/ui/components/input/ActivationListener.kt @@ -17,6 +17,8 @@ class ActivationListener : ActorGestureListener(20f, 0.25f, 1.1f, Int.MAX_VALUE. override fun longPress(actor: Actor?, x: Float, y: Float): Boolean { if (actor == null) return false + // See #10050 - when a tap discards its actor or ascendants, Gdx can't cancel the longpress timer + if (actor.stage == null) return false return actor.activate(ActivationTypes.Longpress) } }