-
Notifications
You must be signed in to change notification settings - Fork 62
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
怎么限制元素的移动方向? #124
Comments
看了下Fabric有这个配置 |
目前是通过shift快捷键自动控制的, 后面可以增加下这个配置。 如果你想自己实现,可以通过PropertyEvent检测x,y变化,然后进行修正 |
使用这个手动拖拽元素搞定了,只能绑定在具体元素上,绑定在app上就无效。 |
监听全局的,可以绑定在app.tree上 |
图片编辑器已增加 config.lockMove 配置,可锁定在 x 或 y 轴移动 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如只能横向移动,垂直移动,不让元素自由拖动。
The text was updated successfully, but these errors were encountered: