fix: disable Telegram swipe-to-close globally to prevent accidental app closures

This commit is contained in:
c0mrade
2026-02-02 00:55:39 +03:00
parent 09584fc901
commit 9b0be280d2
4 changed files with 14 additions and 72 deletions

View File

@@ -67,6 +67,9 @@ export function initTelegramSDK() {
// Disable closing confirmation by default
tg.disableClosingConfirmation?.();
// Disable vertical swipes to prevent accidental closures
tg.disableVerticalSwipes?.();
// Auto-enter fullscreen if enabled in settings (mobile only)
const fullscreenEnabled = getCachedFullscreenEnabled();
if (fullscreenEnabled && isTelegramMobile() && tg.requestFullscreen) {