mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 21:01:20 -08:00
修复字幕偏移错误
This commit is contained in:
1 parent
54e9fb9ae2
commit
4722226658
3 files changed
+3
-5
No files matched your search
@@ -3,7 +3,6 @@ import { query } from '../utils';
|
||||
function settingMix(art) {
|
||||
const {
|
||||
i18n,
|
||||
plugins,
|
||||
subtitle,
|
||||
events: { proxy },
|
||||
} = art;
|
||||
@@ -26,7 +25,7 @@ function settingMix(art) {
|
||||
proxy($range, 'change', () => {
|
||||
const { value } = $range;
|
||||
$value.innerText = value;
|
||||
plugins.subtitleOffset.offset(Number(value));
|
||||
art.plugins.subtitleOffset.offset(Number(value));
|
||||
});
|
||||
|
||||
art.on('subtitle:switch', () => {
|
||||
|
||||
Reference in new issue
Block a user