-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[email protected] 平移事件不会触发 #4391
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
手机端还是电脑端无法触发? |
这里有一个移动端画布平移失效的解决方法 链接 |
苹果笔记本的触摸板监听的画布移动事件无法触发,”translate“,resize 和 zoom 的时候 ”translate“ 会跟着触发,单独使用拖移不会触发 ”translate“ 事件 |
不是移动端,我使用的 plugin-Scroller 插件模式,不会触发平移事件,并且在插件里面开启了 pannable,官方文档说不要在Graph 构造器里面 和 Scroller 里面同时去开启 pannable,我有插件当前集中在插件里面去管理。 graph.use( |
我这边电脑端也是不会触发平移事件。 |
Describe the bug
graph.on('translate', _ => {
console.log('translate')
Channel.dispatch(HIDE_CONTEXTMENU)
})
Your Example Website or App
小问题 没有弄应用程序
Steps to Reproduce the Bug or Issue
设备:macOS 14
浏览器:Chrome
版本:127.0.6533.120(正式版本) (arm64)
问题:监听 graph 的 translate 时事件触摸板不会触发该事件,鼠标未测试试过。
目的:我期望的是平移画布时,能够取消自定义右键。
Expected behavior
设备:macOS 14
浏览器:Chrome:127.0.6533.120(正式版本) (arm64)
问题:监听 graph 的 translate 时事件触摸板不会触发该事件,鼠标未测试试过。
目的:我期望的是平移画布时,能够取消自定义右键。
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: