This commit is contained in:
Harvey committed 2020-09-15 17:41:07 +08:00
1 parent f69ca07bd7
commit e38873f71a
5 files changed
+29 -11

No files matched your search

+14 -5
View File
@@ -1567,7 +1567,10 @@
$player.dataset.aspectRatio = ratio;
}
notice.show = "".concat(i18n.get('Aspect ratio'), ": ").concat(ratio === 'default' ? i18n.get('Default') : ratio);
if (typeof ratio === 'string') {
notice.show = "".concat(i18n.get('Aspect ratio'), ": ").concat(ratio === 'default' ? i18n.get('Default') : ratio);
}
art.emit('aspectRatio', ratio);
}
});
@@ -2124,8 +2127,11 @@
$player.dataset.flip = flip;
}
var word = flip.replace(flip[0], flip[0].toUpperCase());
notice.show = "".concat(i18n.get('Flip'), ": ").concat(i18n.get(word));
if (typeof flip === 'string') {
var word = flip.replace(flip[0], flip[0].toUpperCase());
notice.show = "".concat(i18n.get('Flip'), ": ").concat(i18n.get(word));
}
art.emit('flip', flip);
}
});
@@ -2314,8 +2320,11 @@
$player.dataset.rotate = deg;
}
notice.show = "".concat(i18n.get('Rotate'), ": ").concat(deg, "\xB0");
art.emit('rotate', deg);
if (typeof deg === 'number') {
notice.show = "".concat(i18n.get('Rotate'), ": ").concat(deg, "\xB0");
}
art.emit('rotate', deg || 0);
}
});
def(player, 'rotateReset', {