mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
fix: favorites contextmenu disable
This commit is contained in:
1 parent
56da33f2cd
commit
a93a99b138
1 file changed
+1
-9
@@ -30,15 +30,7 @@ const favoriteTools = computed(() => toolStore.favoriteTools);
|
|||||||
|
|
||||||
const isOrderingFavorites = ref(false);
|
const isOrderingFavorites = ref(false);
|
||||||
|
|
||||||
window.oncontextmenu = (e) => {
|
window.addEventListener('contextmenu', (e) => {
|
||||||
if (isOrderingFavorites.value) {
|
|
||||||
e.preventDefault();
|
|
||||||
e.stopPropagation();
|
|
||||||
e.stopImmediatePropagation();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
window.addEventListener('touchstart', (e) => {
|
|
||||||
if (isOrderingFavorites.value) {
|
if (isOrderingFavorites.value) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|||||||
Reference in new issue
Block a user