mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
feat: Disable hiding default right-click menu when Artplayer.CONTEXTMENU is set to false
This commit is contained in:
1 parent
adff473f71
commit
5655db4b20
3 files changed
+4
-3
No files matched your search
@@ -79,8 +79,8 @@ export default class Contextmenu extends Component {
|
||||
}
|
||||
|
||||
proxy($player, 'contextmenu', (event) => {
|
||||
event.preventDefault();
|
||||
if (!this.art.constructor.CONTEXTMENU) return;
|
||||
event.preventDefault();
|
||||
|
||||
this.show = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user