Marwinzien76's Recent Forum Activity

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

Marwinzien76's avatar

Marwinzien76

Member since 6 Aug, 2022

None one is following Marwinzien76 yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies