mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
feat: 添加对移动设备的支持并优化滑块事件处理
This commit is contained in:
1 parent
38ef03d31f
commit
e7c31e55b3
6 files changed
+79
-57
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user