fix: vue-plyr audio tag
Co-authored-by: mappi <mappi-pr@github.com>
This commit is contained in:
parent
09983a657d
commit
bf54fb70af
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue