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

修正点击移动时的初始位置计算 #38

Open
itorr opened this issue Aug 27, 2022 · 0 comments
Open

修正点击移动时的初始位置计算 #38

itorr opened this issue Aug 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@itorr
Copy link
Owner

itorr commented Aug 27, 2022

目前的初始位置计算偷懒取了 rect.left + rect.width / 2 需要计算更精确的实际位置来处理位移。

或者通过全局 pageX pageY 的坐标旋转 来判断点击元素是否在角色范围以及处理位移

@itorr itorr added the bug Something isn't working label Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant