feat: 添加对移动设备的支持并优化滑块事件处理

This commit is contained in:
Harvey Zack committed 2025-01-18 16:44:04 +08:00
1 parent 38ef03d31f
commit e7c31e55b3
6 files changed
+79 -57

No files matched your search

+4
View File
@@ -11,6 +11,7 @@ import {
getRect,
addClass,
setStyle,
isMobile,
errorHandle,
inverseClass,
createElement,
@@ -174,6 +175,9 @@ export default class Setting extends Component {
setStyle($setting, 'height', `${settingHeight}px`);
setStyle($setting, 'width', `${settingWidth}px`);
if (this.art.isRotate || isMobile) return;
if (settingLeft + settingWidth > playerWidth) {
setStyle($setting, 'left', null);
setStyle($setting, 'right', null);