mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
bugifx
This commit is contained in:
1 parent
5554849a9f
commit
d3d4114336
5 files changed
+7
-7
No files matched your search
@@ -10,7 +10,7 @@ export default function rotateMix(art, player) {
|
||||
def(player, 'rotate', {
|
||||
get: () => Number($player.dataset.rotate) || 0,
|
||||
set: (deg) => {
|
||||
if (deg === false) deg = 0;
|
||||
if (!deg) deg = 0;
|
||||
|
||||
const degList = [-270, -180, -90, 0, 90, 180, 270];
|
||||
errorHandle(degList.includes(deg), `'rotate' only accept ${degList.toString()} as parameters`);
|
||||
|
||||
Reference in new issue
Block a user