feat: revert contextmenuHandler
This commit is contained in:
parent
455af3385f
commit
ad4a1a78be
|
|
@ -13,14 +13,14 @@ class ContextMenu {
|
|||
});
|
||||
|
||||
this.contextmenuHandler = (e) => {
|
||||
const event = e || window.event;
|
||||
event.preventDefault();
|
||||
|
||||
if (this.shown) {
|
||||
this.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
const event = e || window.event;
|
||||
event.preventDefault();
|
||||
|
||||
const clientRect = this.player.container.getBoundingClientRect();
|
||||
this.show(event.clientX - clientRect.left, event.clientY - clientRect.top);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue