Marwinzien76's Forum Posts

  • 2 posts
  • 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 !

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello,

    After many searches, I can't find the solution.

    When I'm on my mobile, if I click for a long time, the HTML5 game will be selected.

    I can't disable the selection when I click, is there a specific html code to add to prevent this selection?

    Thanks in advance !

  • 2 posts