fix updateStyle

This commit is contained in:
Harvey Zack committed 2022-12-31 23:44:26 +08:00
1 parent 0da181faae
commit 692a43e4ec
3 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -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();