Skip to content

Commit

Permalink
On other platforms (e.g., ios), prevent the user from holding down an…
Browse files Browse the repository at this point in the history
…d selecting in certain areas of the homepage.
  • Loading branch information
johndoknjas committed Dec 21, 2024
1 parent e7fe782 commit 3e2d3c8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ui/common/css/abstract/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,10 @@
overflow: hidden;
text-overflow: ellipsis;
}

@mixin prevent-select {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
2 changes: 1 addition & 1 deletion ui/common/css/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body > header {
z-index: $z-site-header-106;
max-width: 1800px;
margin: 0 auto;
user-select: none;
@include prevent-select;

@include mq-sticky-header {
max-width: unset;
Expand Down
1 change: 1 addition & 0 deletions ui/lobby/css/_table.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.lobby {
&__table {
@extend %flex-column;
@include prevent-select;

position: relative;
}
Expand Down
1 change: 1 addition & 0 deletions ui/lobby/css/app/_app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@extend %flex-column;

@include lobby-app-size;
@include prevent-select;

user-select: none;

Expand Down

0 comments on commit 3e2d3c8

Please sign in to comment.