mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
Refactor Artplayer class to remove unnecessary CSS transformations in setting.less
This commit is contained in:
1 parent
0d5757b51c
commit
477331b0e2
4 files changed
+5
-7
No files matched your search
@@ -150,7 +150,7 @@ export default class Setting extends Component {
|
||||
template: { $player, $setting },
|
||||
} = this.art;
|
||||
|
||||
if (controls.setting && this.show && !isMobile) {
|
||||
if (controls.setting && this.show) {
|
||||
const settingWidth = this.active[0]?.$parent?.width || SETTING_WIDTH;
|
||||
const { left: controlLeft, width: controlWidth } = getRect(controls.setting);
|
||||
const { left: playerLeft, width: playerWidth } = getRect($player);
|
||||
|
||||
Reference in new issue
Block a user