diff --git a/minchat-client/src/main/kotlin/io/minchat/client/ui/chat/MinchatMessageElement.kt b/minchat-client/src/main/kotlin/io/minchat/client/ui/chat/MinchatMessageElement.kt index 879811c..a74edfb 100644 --- a/minchat-client/src/main/kotlin/io/minchat/client/ui/chat/MinchatMessageElement.kt +++ b/minchat-client/src/main/kotlin/io/minchat/client/ui/chat/MinchatMessageElement.kt @@ -43,6 +43,8 @@ abstract class MinchatMessageElement( false.also { updateBackground() } override fun touchDown(event: InputEvent?, x: Float, y: Float, pointer: Int, button: KeyCode?): Boolean { + if (!addContextActions) return false + if (Vars.mobile) { updateBackground() longClickBegin = System.currentTimeMillis() @@ -55,6 +57,8 @@ abstract class MinchatMessageElement( } override fun touchUp(event: InputEvent?, x: Float, y: Float, pointer: Int, button: KeyCode?) { + if (!addContextActions) return + if (Vars.mobile && longClickBegin > 0L) { if (System.currentTimeMillis() - longClickBegin > 400L) { onRightClick()