separate variable constants

This commit is contained in:
Harvey committed 2022-04-27 10:42:07 +08:00
1 parent 57a14f63ac
commit fc3abd7d1d
20 files changed
+143 -80

No files matched your search

+3 -2
View File
@@ -51,6 +51,7 @@ export default function gestureInit(art, events) {
const {
notice,
plugins,
constructor,
template: { $video },
} = art;
@@ -69,8 +70,8 @@ export default function gestureInit(art, events) {
clearTimeout(pressTimer);
pressTimer = setTimeout(() => {
art.playbackRate = 3;
}, 1000);
art.playbackRate = constructor.MOBILE_AUTO_PLAYBACKRATE;
}, constructor.MOBILE_AUTO_PLAYBACKRATE_TIME);
}
});