Skip to content

如何在拖动结束事件onDragstop 中获取左右移动的距离X,Y #384

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

Open
Bobby0403 opened this issue Nov 30, 2023 · 2 comments
Open

Comments

@Bobby0403
Copy link

需求:拖动结束后会想还原初始的位置,下次拖动的时候,拖动结束传回来的X,Y仍然是上次的数据+偏移的数据。希望还原后得到的X,Y为新的偏移量。

@qidianwei
Copy link

解决了吗?我也有这个问题

@Bobby0403
Copy link
Author

没有,更换了思路,每次拖动后重置了

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

No branches or pull requests

2 participants