I’m developing a Telegram Mini App using Vite+React, and users are reporting unexpected scrolling and collapses when interacting with the app on touchscreen devices. These issues often occur when users are trying to tap or swipe within the app, leading to a poor user experience.
I’ve tried various solutions to prevent unnecessary scrolling, but the problem persists. How can I effectively prevent these unwanted behaviors and ensure a stable, responsive UI for all users on touchscreen devices?
i have this in my index.html code
<script src="https://telegram.org/js/telegram-web-app.js">
window.Telegram.WebApp.ready()
window.Telegram.WebApp.expand()
window.Telegram.WebApp.disableVerticalSwipes()
</script>
someone is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.