Update index.js

This commit is contained in:
Harvey Zack authored and GitHub committed 2018-11-28 21:56:24 +08:00
1 parent 0e716da80d
commit efbd7c08f4
1 file changed
+2 -2
@@ -39,7 +39,7 @@ function settingMix(art) {
proxy($range, 'change', () => {
const { value } = $range;
$value.innerText = value;
art.plugins.artplayerPluginSubtitle.set(Number(value));
art.plugins.artplayerPluginSubtitle.offset(Number(value));
});
art.on('subtitle:switch', () => {
@@ -69,7 +69,7 @@ function artplayerPluginSubtitle(art) {
});
return {
set(value) {
offset(value) {
const cues = Array.from(template.$track.track.cues);
const time = clamp(value, -5, 5);
cues.forEach((cue, index) => {