add art.isInput

This commit is contained in:
Harvey Zack committed 2022-05-15 07:42:28 +08:00
1 parent 3741f876d5
commit 2b934ab988
5 files changed
+10 -4

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ export default class Control extends Component {
});
art.on('video:timeupdate', () => {
if (!art.isFocus && art.playing && this.show && Date.now() - activeTime >= constructor.CONTROL_HIDE_TIME) {
if (!art.isInput && art.playing && this.show && Date.now() - activeTime >= constructor.CONTROL_HIDE_TIME) {
this.show = false;
addClass($player, 'art-hide-cursor');
removeClass($player, 'art-hover');