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

[Enhancement]: 快捷键能支持自定义和修改吗? #268

Closed
sudot opened this issue Jan 3, 2025 · 2 comments
Closed

[Enhancement]: 快捷键能支持自定义和修改吗? #268

sudot opened this issue Jan 3, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@sudot
Copy link

sudot commented Jan 3, 2025

建议

如标题。
甲方是很有想法的甲方,在预览时,希望能取消默认的鼠标滚轮滚动就放大或缩小画布,而是希望滚动鼠标滚轮的时候能上下移动画布。
官方的文档有【unavailableKeys】可以取消事件,但是我试了unavailableKeys: ['wheel']unavailableKeys: ['Ctrl + 滚轮']均无法达到要求。
而我添加的事件this.$refs.topologyDom?.addEventListener('wheel', this.onTopologyWheel);也无法捕获到事件信息。通过F12将原本的事件监听移除后,我添加的事件监听方可获得滚动事件信息。

建议原因

  1. 希望能支持自定义快捷键
  2. 希望官网文档将一些枚举的值列出来
@sudot sudot added the enhancement New feature or request label Jan 3, 2025
@Grnetsky
Copy link
Contributor

官方提供了scroll属性,设置meta2d的scroll配置为true 则可以实现滚动滚轮上下滑动 按住ctrl加滚动为缩放画布

@sudot
Copy link
Author

sudot commented Jan 22, 2025

官方提供了scroll属性,设置meta2d的scroll配置为true 则可以实现滚动滚轮上下滑动 按住ctrl加滚动为缩放画布

好的,感谢

@sudot sudot closed this as completed Jan 22, 2025
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