mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
update setting
This commit is contained in:
1 parent
0616d944c5
commit
12047d90ef
8 files changed
+31
-25
No files matched your search
@@ -27,12 +27,12 @@ export default function playbackRate(art) {
|
||||
$desc.innerText = getI18n(art.playbackRate);
|
||||
|
||||
art.on('playbackRate', (value) => {
|
||||
$desc.innerText = getI18n(art.playbackRate);
|
||||
const $current = queryAll('.art-setting-item', $panel).find(
|
||||
(item) => Number(item.dataset.value) === value,
|
||||
);
|
||||
if ($current) {
|
||||
inverseClass($current, 'art-current');
|
||||
$desc.innerText = getI18n(art.playbackRate);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user