This commit is contained in:
Harvey committed 2022-04-27 15:10:39 +08:00
1 parent 07a58c0a38
commit ec6b439d39
7 files changed
+24 -18

No files matched your search

@@ -2,20 +2,21 @@ import { hasClass, addClass, removeClass } from '../utils';
export default function fastForward(art) {
const {
constructor,
events: { proxy },
template: { $player, $video },
} = art;
let isPress = false;
let timer = null;
let isPress = false;
const onStart = () => {
if (art.playing) {
const onStart = (event) => {
if (event.touches.length === 1 && art.playing) {
timer = setTimeout(() => {
isPress = true;
art.playbackRate = 3;
art.playbackRate = constructor.FAST_FORWARD_VALUE;
addClass($player, 'art-fast-forward');
}, 1000);
}, constructor.FAST_FORWARD_TIME);
}
};