Refactor subtitleOffset function to update range values and append items

This commit is contained in:
Harvey Zack committed 2024-10-20 22:03:35 +08:00
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';