Refactor subtitleOffset function to update range values and append items

This commit is contained in:
Harvey Zack committed 2024-10-20 22:02:01 +08:00
1 parent 3cece10f9e
commit 8566df6336
3 files changed
+13 -1

No files matched your search

+6
View File
@@ -5097,6 +5097,12 @@ function subtitleOffset(art) {
onChange (item) {
art.subtitleOffset = item.range[0];
return item.range[0] + "s";
},
mounted: (_, item)=>{
art.on("subtitleOffset", (value)=>{
item.$range.value = value;
item.tooltip = value + "s";
});
}
};
}