From 72ae855640822b633785d93cd5702e1491459149 Mon Sep 17 00:00:00 2001 From: feie9456 Date: Sun, 17 Aug 2025 16:13:35 +0800 Subject: [PATCH] prevent context menu --- src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.vue b/src/App.vue index ff42bfb..e397fa5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -134,6 +134,10 @@ document.addEventListener('pointerdown', (e) => { } }); +document.addEventListener('contextmenu', (e) => { + e.preventDefault(); +}); + const loadProgress = ref({ download: 0, decode: 0 }); const mainVideoURL = new URL('./assets/main.mp4', import.meta.url).href;