Skip to content

Commit cf33008

Browse files
committed
fix: avoid text selection in mobile device
1 parent efbaad6 commit cf33008

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/library/pages/css/styles.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,15 @@ ul li a:hover {
267267
flex: 1;
268268
}
269269

270+
#game canvas{
271+
-webkit-user-select: none;
272+
-ms-user-select: none;
273+
user-select: none;
274+
-webkit-touch-callout: none;
275+
-webkit-tap-highlight-color: transparent;
276+
touch-action: none;
277+
}
278+
270279
#menu .left-menu {
271280
width: 0;
272281
height: 0;

0 commit comments

Comments
 (0)