DEADSOFTWARE

fix
authorfredboy <fredboy@protonmail.com>
Tue, 23 Apr 2024 03:12:58 +0000 (10:12 +0700)
committerfredboy <fredboy@protonmail.com>
Tue, 23 Apr 2024 03:12:58 +0000 (10:12 +0700)
core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt

index 5f983c5967feb860175e45c78effe82b919f46c4..31827d22a3e5c088ad03ee09fb278b63727f10d4 100644 (file)
@@ -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)
             }