fix: vue-plyr audio tag

Co-authored-by: mappi <mappi-pr@github.com>
This commit is contained in:
mappi 2023-06-02 16:31:25 +09:00 committed by ThatOneCalculator
parent 09983a657d
commit bf54fb70af
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,8 @@ const currentClipPage = inject<Ref<misskey.entities.Clip> | null>(
function onContextmenu(ev: MouseEvent): void { function onContextmenu(ev: MouseEvent): void {
const isLink = (el: HTMLElement) => { const isLink = (el: HTMLElement) => {
if (el.tagName === "A") return true; if (el.tagName === "A") return true;
// The Audio element's context menu is the browser default, such as for selecting playback speed.
if (el.tagName === 'AUDIO') return true;
if (el.parentElement) { if (el.parentElement) {
return isLink(el.parentElement); return isLink(el.parentElement);
} }