mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
bugfix
This commit is contained in:
1 parent
d3d4114336
commit
e9c9fbc2c8
5 files changed
+7
-7
No files matched your search
@@ -17,7 +17,7 @@ export default function aspectRatioMix(art, player) {
|
||||
const ratioList = ['default', '4:3', '16:9'];
|
||||
errorHandle(ratioList.includes(ratio), `'aspectRatio' only accept ${ratioList.toString()} as parameters`);
|
||||
|
||||
if (!ratio || ratio === 'default') {
|
||||
if (ratio === 'default') {
|
||||
setStyle($video, 'width', null);
|
||||
setStyle($video, 'height', null);
|
||||
setStyle($video, 'padding', null);
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function flipMix(art, player) {
|
||||
const flipList = ['normal', 'horizontal', 'vertical'];
|
||||
errorHandle(flipList.includes(flip), `'flip' only accept ${flipList.toString()} as parameters`);
|
||||
|
||||
if (!flip || flip === 'normal') {
|
||||
if (flip === 'normal') {
|
||||
delete $player.dataset.flip;
|
||||
} else {
|
||||
$player.dataset.flip = flip;
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function rotateMix(art, player) {
|
||||
const degList = [-270, -180, -90, 0, 90, 180, 270];
|
||||
errorHandle(degList.includes(deg), `'rotate' only accept ${degList.toString()} as parameters`);
|
||||
|
||||
if (!deg) {
|
||||
if (deg === 0) {
|
||||
setStyle($video, 'width', null);
|
||||
setStyle($video, 'height', null);
|
||||
setStyle($video, 'padding', null);
|
||||
|
||||
Reference in new issue
Block a user