update gestureInit

This commit is contained in:
Harvey committed 2022-03-10 18:22:40 +08:00
1 parent b4500e701f
commit 3a3246ee3f
5 files changed
+23 -20

No files matched your search

@@ -14,7 +14,7 @@ export default function playbackRateMix(art) {
set(rate) {
if (rate) {
if (rate === $video.playbackRate) return;
const rateList = [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0];
const rateList = [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 3.0, 4.0];
errorHandle(rateList.includes(rate), `'playbackRate' only accept ${rateList.toString()} as parameters`);
$video.playbackRate = rate;
notice.show = `${i18n.get('Rate')}: ${rate === 1.0 ? i18n.get('Normal') : `${rate}x`}`;