mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
Refactor subtitleOffset function to update range values and append items
This commit is contained in:
1 parent
8566df6336
commit
0d5757b51c
3 files changed
+4
-4
No files matched your search
@@ -7,7 +7,7 @@ export default function subtitleOffset(art) {
|
||||
html: i18n.get('Subtitle Offset'),
|
||||
icon: icons.subtitle,
|
||||
tooltip: '0s',
|
||||
range: [0, -5, 5, 0.1],
|
||||
range: [0, -10, 10, 0.1],
|
||||
onChange(item) {
|
||||
art.subtitleOffset = item.range[0];
|
||||
return item.range[0] + 's';
|
||||
|
||||
Reference in new issue
Block a user