mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 00:56:16 -08:00
fix updateStyle
This commit is contained in:
1 parent
0da181faae
commit
692a43e4ec
3 files changed
+4
-5
No files matched your search
@@ -9,7 +9,6 @@ import {
|
||||
append,
|
||||
addClass,
|
||||
setStyle,
|
||||
isMobile,
|
||||
inverseClass,
|
||||
createElement,
|
||||
includeFromEvent,
|
||||
@@ -350,7 +349,7 @@ export default class Setting extends Component {
|
||||
template: { $player, $setting },
|
||||
} = this.art;
|
||||
|
||||
if (controls.setting && !isMobile) {
|
||||
if (controls.setting) {
|
||||
const settingWidth = width || constructor.SETTING_WIDTH;
|
||||
const { left: controlLeft, width: controlWidth } = controls.setting.getBoundingClientRect();
|
||||
const { left: playerLeft, width: playerWidth } = $player.getBoundingClientRect();
|
||||
|
||||
Reference in new issue
Block a user