We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如标题。 甲方是很有想法的甲方,在预览时,希望能取消默认的鼠标滚轮滚动就放大或缩小画布,而是希望滚动鼠标滚轮的时候能上下移动画布。 官方的文档有【unavailableKeys】可以取消事件,但是我试了unavailableKeys: ['wheel']和unavailableKeys: ['Ctrl + 滚轮']均无法达到要求。 而我添加的事件this.$refs.topologyDom?.addEventListener('wheel', this.onTopologyWheel);也无法捕获到事件信息。通过F12将原本的事件监听移除后,我添加的事件监听方可获得滚动事件信息。
unavailableKeys: ['wheel']
unavailableKeys: ['Ctrl + 滚轮']
this.$refs.topologyDom?.addEventListener('wheel', this.onTopologyWheel);
The text was updated successfully, but these errors were encountered:
官方提供了scroll属性,设置meta2d的scroll配置为true 则可以实现滚动滚轮上下滑动 按住ctrl加滚动为缩放画布
Sorry, something went wrong.
好的,感谢
No branches or pull requests
建议
如标题。
甲方是很有想法的甲方,在预览时,希望能取消默认的鼠标滚轮滚动就放大或缩小画布,而是希望滚动鼠标滚轮的时候能上下移动画布。
官方的文档有【unavailableKeys】可以取消事件,但是我试了
unavailableKeys: ['wheel']
和unavailableKeys: ['Ctrl + 滚轮']
均无法达到要求。而我添加的事件
this.$refs.topologyDom?.addEventListener('wheel', this.onTopologyWheel);
也无法捕获到事件信息。通过F12将原本的事件监听移除后,我添加的事件监听方可获得滚动事件信息。建议原因
The text was updated successfully, but these errors were encountered: