support for disabling the app’s built-in swipe-back navigation (#249)

This commit is contained in:
MaysWind
2025-09-20 21:57:53 +08:00
parent d947164eb6
commit 18b270debb
17 changed files with 42 additions and 1 deletions
+3 -1
View File
@@ -23,7 +23,7 @@ import { useExchangeRatesStore } from '@/stores/exchangeRates.ts';
import { APPLICATION_LOGO_PATH } from '@/consts/asset.ts';
import { ThemeType } from '@/core/theme.ts';
import { isProduction } from '@/lib/version.ts';
import { getTheme, isEnableAnimate } from '@/lib/settings.ts';
import { getTheme, isEnableSwipeBack, isEnableAnimate } from '@/lib/settings.ts';
import { initMapProvider } from '@/lib/map/index.ts';
import { isUserLogined, isUserUnlocked } from '@/lib/userstate.ts';
import { setExpenseAndIncomeAmountColor } from '@/lib/ui/common.ts';
@@ -98,7 +98,9 @@ const f7params = ref<Framework7Parameters>({
browserHistory: !isiOSHomeScreenMode(),
browserHistoryInitialMatch: true,
browserHistoryAnimate: false,
iosSwipeBack: isEnableSwipeBack(),
iosSwipeBackAnimateShadow: false,
mdSwipeBack: isEnableSwipeBack(),
mdSwipeBackAnimateShadow: false
}
});