Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有无可能,加入陀螺仪传感器的摇晃感应? #6

Open
huangsijun17 opened this issue Sep 2, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@huangsijun17
Copy link

毕竟,谁不想亲手摇一下?

@dsrkafuu
Copy link
Owner

dsrkafuu commented Sep 7, 2022

最初没有添加陀螺仪的考虑是这样的:

一般情况下使用陀螺仪的场景在移动设备,移动设备本身在界面设计上比较局限,因此很多网页小组件会选择在移动版页面内隐藏;

除此之外,设备方向和设备运动状态的相关 API,例如 devicemotion 等事件,在不同平台、不同浏览器下的支持情况和使用方式都比较不统一,例如坐标轴方向 (正负)、权限获取 (获取方式、是否需要交互行为触发) 等。

所以最终考虑实现的完善性、没有测试环境、不是很常用等原因就暂时没有做。之后有时间可以添加上。

@dsrkafuu dsrkafuu added the enhancement New feature or request label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants