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

fix(av-canvas): 精灵操作适配移动端 #373

Merged
merged 4 commits into from
Feb 21, 2025
Merged

Conversation

guax1xi
Copy link
Contributor

@guax1xi guax1xi commented Feb 20, 2025

将mouse事件替换为pointer事件,同时在创建canvas的时候增加touch-action: none
以适配移动端操作

Copy link

changeset-bot bot commented Feb 20, 2025

🦋 Changeset detected

Latest commit: 3b257f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@webav/av-canvas Patch
WebAV-Doc-Site Patch
@webav/av-cliper Patch
@webav/av-recorder Patch
@webav/internal-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hughfenghen
Copy link
Member

@litt1eXixi 感谢勇士的贡献。

请检查修复单测错误,也请确保新事件能完整兼容 PC 端的鼠标操作。

另外参考请参考贡献指南 - 工作流 , 添加 changeset 文件。

@guax1xi
Copy link
Contributor Author

guax1xi commented Feb 21, 2025

@litt1eXixi 感谢勇士的贡献。

请检查修复单测错误,也请确保新事件能完整兼容 PC 端的鼠标操作。

另外参考请参考贡献指南 - 工作流 , 添加 changeset 文件。

感谢你的回复与提醒,此前并未注意到单元测试的错误,由于我是使用了pointer事件替代鼠标事件,自测的过程中可以完整的兼容PC端的操作,在单侧中仅提供了mouse事件的相关用例,是否允许我修改对应的单侧代码,更新对应测试的内容

@hughfenghen
Copy link
Member

@litt1eXixi 确保 pointer 事件能兼容 PC 端鼠标操作后,可以将单测中的对应的事件名称改成 pointer。
🫡

@guax1xi
Copy link
Contributor Author

guax1xi commented Feb 21, 2025

好的,已修改对应的内容,再次感谢你的耐心,这是我第一次为开源项目贡献代码,对于流程疏忽之处烦请见谅

@hughfenghen hughfenghen changed the title feat(av-canvas): 精灵操作适配移动端 fix(av-canvas): 精灵操作适配移动端 Feb 21, 2025
@hughfenghen hughfenghen merged commit eddadbd into bilibili:main Feb 21, 2025
2 checks passed
@hughfenghen
Copy link
Member

太棒了,恭喜你解锁了新成就!

加油~

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.

2 participants