Skip to content

fix: 修复 isMobile 函数将触摸屏 PC 误判为移动设备的问题#152

Open
Hclle wants to merge 1 commit intotheajack:masterfrom
Hclle:fix-mobile-detection
Open

fix: 修复 isMobile 函数将触摸屏 PC 误判为移动设备的问题#152
Hclle wants to merge 1 commit intotheajack:masterfrom
Hclle:fix-mobile-detection

Conversation

@Hclle
Copy link
Copy Markdown

@Hclle Hclle commented Apr 27, 2026

  • 移除 maxTouchPoints 的优先判断,因为它无法区分触摸屏 PC 和移动设备
  • 调整判断顺序,先通过 platform 判断桌面系统
  • Windows/Mac 触摸屏设备不再被误判为移动设备

- 移除 maxTouchPoints 的优先判断,因为它无法区分触摸屏 PC 和移动设备
- 调整判断顺序,先通过 platform 判断桌面系统
- Windows/Mac 触摸屏设备不再被误判为移动设备
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant