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', () => {