From 7e29e02ce44517699fc8a29a59e5598494e94715 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Wed, 2 Nov 2022 16:36:50 +0100 Subject: [PATCH] Prevent accidental selection of the container When long pressing stuff in the sidebar on iOS, you can sometimes accidentally select the container or the canvas. This results in a broken state where the user can't interact with the session anymore. This commit prevents this from happening. --- app/styles/base.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/styles/base.css b/app/styles/base.css index 1ff7f8e98..ffc2b4fe8 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -839,6 +839,13 @@ html { background-color: #313131; border-bottom-right-radius: 800px 600px; /*border-top-left-radius: 800px 600px;*/ + + /* If selection isn't disabled, long-pressing stuff in the sidebar + can accidentally select the container or the canvas. This in turn, + results in a broken state where the user can't interact with the + remote */ + user-select: none; + -webkit-user-select: none; } #noVNC_keyboardinput {