You solved my problem as well. The only thing that confused me was where to put this. Thanks to both of you for figuring it out!
I realised I had to make a 'Stylesheet' file and add your code to it.
Hello,
Thank you for your answers,
I tried the code, unfortunately it did not work on my game.
And when importing, using the "Advanced Minification" function, the code was broken.
However I found the solution,
I added the code below to avoid the selection of the canva (I based on your logic).
> canvas {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}
body is added to avoid the selection around the game if it is not in full screen.
Have a nice evening !