mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +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);
|
||||
|
||||
window.oncontextmenu = (e) => {
|
||||
if (isOrderingFavorites.value) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
window.addEventListener('touchstart', (e) => {
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
if (isOrderingFavorites.value) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in new issue
Block a user