feat: Disable hiding default right-click menu when Artplayer.CONTEXTMENU is set to false

This commit is contained in:
Harvey Zack committed 2024-08-12 17:53:43 +08:00
1 parent adff473f71
commit 5655db4b20
3 files changed
+4 -3

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- 新增 `Artplayer.STYLE` 属性,返回播放器样式文本
- `art.screenshot('your-name')` 截图功能支持自定义文件名字
- `Artplayer.CONTEXTMENU` 为 `false` 时,不再隐藏默认右键菜单
## [5.1.6] - 2024-6-15
+2 -2
View File
@@ -1,7 +1,7 @@
{
"license": "MIT",
"name": "artplayer",
"version": "5.1.6",
"version": "5.1.7",
"main": "dist/artplayer.js",
"legacy": "dist/artplayer.legacy.js",
"types": "types/artplayer.d.ts",
@@ -24,4 +24,4 @@
"dependencies": {
"option-validator": "^2.0.6"
}
}
}
+1 -1
View File
@@ -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;