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

+7 -5
View File
@@ -4960,9 +4960,11 @@
mounted: function mounted($layer) {
var isPress = false;
proxy($layer, 'touchstart', function () {
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', function () {
if (isPress) {
@@ -5031,7 +5033,7 @@
this.id = 0;
var option = art.option;
if (!option.isLive && option.miniProgressBar) {
if (option.miniProgressBar && !option.isLive) {
this.add(miniProgressBar);
}
@@ -5047,7 +5049,7 @@
this.add(autoOrientation);
}
if (option.fastForward && isMobile) {
if (option.fastForward && isMobile && !option.isLive) {
this.add(fastForward);
}