fix the context menu disappears after the second long press on the add icon on the mobile home page
This commit is contained in:
@@ -22,6 +22,8 @@ import { useExchangeRatesStore } from '@/stores/exchangeRates.ts';
|
||||
|
||||
import { APPLICATION_LOGO_PATH } from '@/consts/asset.ts';
|
||||
import { ThemeType } from '@/core/theme.ts';
|
||||
|
||||
import { isFunction } from '@/lib/common.ts';
|
||||
import { isProduction } from '@/lib/version.ts';
|
||||
import { getTheme, isEnableSwipeBack, isEnableAnimate } from '@/lib/settings.ts';
|
||||
import { initMapProvider } from '@/lib/map/index.ts';
|
||||
@@ -183,7 +185,9 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
document.addEventListener('dragstart', (e) => {
|
||||
if (!e.target || !('closest' in e.target) || !isFunction(e.target.closest) || !e.target.closest('.dragenabled')) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}, true);
|
||||
});
|
||||
|
||||
|
||||
@@ -172,7 +172,8 @@
|
||||
<f7-icon f7="creditcard"></f7-icon>
|
||||
<span class="tabbar-label">{{ tt('Accounts') }}</span>
|
||||
</f7-link>
|
||||
<f7-link id="homepage-add-button" class="link" href="/transaction/add" @taphold="openTransactionTemplatePopover">
|
||||
<f7-link id="homepage-add-button" class="link dragenabled"
|
||||
href="/transaction/add" @taphold="openTransactionTemplatePopover">
|
||||
<f7-icon f7="plus_square" class="ebk-tarbar-big-icon"></f7-icon>
|
||||
</f7-link>
|
||||
<f7-link class="link" href="/statistic/transaction">
|
||||
|
||||
Reference in New Issue
Block a user