update fastForward

This commit is contained in:
Harvey committed 2022-04-27 14:37:16 +08:00
1 parent 8c7edbb83a
commit c5ed370c8b
4 files changed
+15 -11

No files matched your search

@@ -15,9 +15,11 @@ export default function fastForward(art) {
let isPress = false;
proxy($layer, 'touchstart', () => {
isPress = true;
art.playbackRate = 3;
addClass($player, 'art-fast-forward');
if (art.playing) {
isPress = true;
art.playbackRate = 3;
addClass($player, 'art-fast-forward');
}
});
proxy(document, 'touchend', () => {
+2 -2
View File
@@ -12,7 +12,7 @@ export default class Plugins {
const { option } = art;
if (!option.isLive && option.miniProgressBar) {
if (option.miniProgressBar && !option.isLive) {
this.add(miniProgressBar);
}
@@ -28,7 +28,7 @@ export default class Plugins {
this.add(autoOrientation);
}
if (option.fastForward && isMobile) {
if (option.fastForward && isMobile && !option.isLive) {
this.add(fastForward);
}