fix win vframe; prevent context menu
This commit is contained in:
parent
f5cab67ef3
commit
45c275ae4f
@ -117,6 +117,9 @@ window.addEventListener('pointerdown', () => {
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
const isPortrait = ref(window.innerHeight > window.innerWidth);
|
||||
|
||||
|
||||
@ -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.
Loading…
x
Reference in New Issue
Block a user