mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
bugfix
This commit is contained in:
1 parent
f69ca07bd7
commit
e38873f71a
5 files changed
+29
-11
No files matched your search
@@ -40,7 +40,10 @@ export default function aspectRatioMix(art, player) {
|
||||
$player.dataset.aspectRatio = ratio;
|
||||
}
|
||||
|
||||
notice.show = `${i18n.get('Aspect ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`;
|
||||
if (typeof ratio === 'string') {
|
||||
notice.show = `${i18n.get('Aspect ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`;
|
||||
}
|
||||
|
||||
art.emit('aspectRatio', ratio);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -21,8 +21,11 @@ export default function flipMix(art, player) {
|
||||
$player.dataset.flip = flip;
|
||||
}
|
||||
|
||||
const word = flip.replace(flip[0], flip[0].toUpperCase());
|
||||
notice.show = `${i18n.get('Flip')}: ${i18n.get(word)}`;
|
||||
if (typeof flip === 'string') {
|
||||
const word = flip.replace(flip[0], flip[0].toUpperCase());
|
||||
notice.show = `${i18n.get('Flip')}: ${i18n.get(word)}`;
|
||||
}
|
||||
|
||||
art.emit('flip', flip);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -25,8 +25,11 @@ export default function rotateMix(art, player) {
|
||||
$player.dataset.rotate = deg;
|
||||
}
|
||||
|
||||
notice.show = `${i18n.get('Rotate')}: ${deg}°`;
|
||||
art.emit('rotate', deg);
|
||||
if (typeof deg === 'number') {
|
||||
notice.show = `${i18n.get('Rotate')}: ${deg}°`;
|
||||
}
|
||||
|
||||
art.emit('rotate', deg || 0);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user