Compare commits

...
1 Commits
Author SHA1 Message Date
feie9454 45c275ae4f fix win vframe; prevent context menu 2025-08-17 17:01:39 +08:00
4 changed files with 5 additions and 1 deletions
+3
View File
@@ -117,6 +117,9 @@ window.addEventListener('pointerdown', () => {
}
});
window.addEventListener('contextmenu', (e) => {
e.preventDefault();
});
const isPortrait = ref(window.innerHeight > window.innerWidth);
+2 -1
View File
@@ -8,7 +8,8 @@ export async function loadFromResSmartly({ url, rules, onprogress }: {
onprogress?: (progress: { download: number, decode: number }) => void
}): Promise<CanvasImageSource[]> {
const isChromium = navigator.userAgent.includes('Chrome') || navigator.userAgent.includes('Chromium');
const useWebCodec = isChromium && 'VideoDecoder' in window;
const isWindows = navigator.userAgent.includes('Windows');
const useWebCodec = isChromium && 'VideoDecoder' in window && !isWindows;
const finalType =
useWebCodec && url.video ? 'video' :
Binary file not shown.
Binary file not shown.