Skip to content

Commit

Permalink
Prevent accidental selection of the container
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
samhed committed Nov 2, 2022
1 parent 584ce06 commit 7e29e02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7e29e02

Please sign in to comment.