skip to Main Content

I’m creating an application with React Js. There’s a game in TG Web app. You need to remove the balls by collecting combinations. But when I swipe down Tg wants to close.The game

I tried adding touch-action : none but it doesn`t work

2

Answers


  1. app.isClosingConfirmationEnabled = true;

    Login or Signup to reply.
  2. I think he said what you can code this:

    const app = window.Telegram.WebApp;
    app.ready()
    app.isClosingConfirmationEnabled = true;
    

    it works on my side.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search