From: fredboy Date: Tue, 23 Apr 2024 03:12:58 +0000 (+0700) Subject: fix X-Git-Tag: alpha0.6.2~4 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=87ae3cc9d7c9e24c0db4b40ba06039eda2e90b41;p=cavedroid.git fix --- diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt b/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt index 5f983c5..31827d2 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt @@ -74,7 +74,7 @@ class HotbarMouseInputHandler @Inject constructor( cancelHold() } - if (action.actionKey !is MouseInputActionKey.Left) { + if (action.actionKey !is MouseInputActionKey.Left && action.actionKey !is MouseInputActionKey.Touch ) { if (action.actionKey is MouseInputActionKey.Scroll) { handleScroll(action) }