From 70ec49e5460743b4e53392b139179ab159227d94 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 4 Jan 2024 18:58:09 +0700 Subject: [PATCH] Display panel's mouse cursor if it grabs mouse input --- .../ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt index bf05cdb7a..8cea8bc95 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt @@ -901,7 +901,7 @@ open class EditablePanel @JvmOverloads constructor( popScissorRect() } - if (isHovered) { + if (isHovered || grabMouseInput) { cursorType.setTo() } }