diff --git a/src/lib/telegram/prevent-telegram-swipe-down-closing.tsx b/src/lib/telegram/prevent-telegram-swipe-down-closing.tsx index 990f9d27..6fb587bc 100644 --- a/src/lib/telegram/prevent-telegram-swipe-down-closing.tsx +++ b/src/lib/telegram/prevent-telegram-swipe-down-closing.tsx @@ -83,9 +83,9 @@ export const PreventTelegramSwipeDownClosingIos = (props: { }; // A hacky way to force expand app back whenever user pull app down -export const usePreventTelegramSwipeDownAndroid = () => { +export const useRestoreFullScreenExpand = () => { useEffect(() => { - if (WebApp.platform !== "android") { + if (WebApp.platform !== "android" && WebApp.platform !== 'ios') { return; } const onViewPortChanged = () => { diff --git a/src/screens/app.tsx b/src/screens/app.tsx index 02e92521..f3435c89 100644 --- a/src/screens/app.tsx +++ b/src/screens/app.tsx @@ -14,11 +14,11 @@ import { deckListStore } from "../store/deck-list-store.ts"; import { FullScreenLoader } from "./deck-list/full-screen-loader.tsx"; import { PreventTelegramSwipeDownClosingIos, - usePreventTelegramSwipeDownAndroid + useRestoreFullScreenExpand } from "../lib/telegram/prevent-telegram-swipe-down-closing.tsx"; export const App = observer(() => { - usePreventTelegramSwipeDownAndroid(); + useRestoreFullScreenExpand(); if (deckListStore.isSharedDeckLoading || deckListStore.isDeckRemoving) { return ;