mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
bugfix
This commit is contained in:
1 parent
3dc1e30bb3
commit
c25038b74c
7 files changed
+17
-19
No files matched your search
@@ -8,7 +8,7 @@ export default function flipMix(art, player) {
|
||||
Object.defineProperty(player, 'flip', {
|
||||
value: dir => {
|
||||
const dirList = ['normal', 'horizontal', 'vertical'];
|
||||
errorHandle(dirList.includes(dir), `The 'angle' need to be one of '[horizontal, vertical]', but got ${dir}`);
|
||||
errorHandle(dirList.includes(dir), `The 'angle' need to be one of '[normal, horizontal, vertical]', but got ${dir}`);
|
||||
art.refs.$player.dataset.flip = dir;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ export default class Flip {
|
||||
const { flip } = target.dataset;
|
||||
if (flip) {
|
||||
player.flip(flip);
|
||||
inverseClass(target, 'current');
|
||||
inverseClass(target.parentElement, 'current');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user