mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-09-14 00:33:10 +00:00
fix: disable Telegram swipe-to-close globally to prevent accidental app closures
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user