x6@2.18.1 平移事件不会触发
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 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
- OS: [macOS]
- Browser: [Chrome]
- Version: [127.0.6533.120]
--------------------
- 设备:macOS 14
- 浏览器:Chrome
- 版本:[127.0.6533.120](正式版本) (arm64)
### Additional context
_No response_
Contributor guide
Research direction
No source file or test is named. Start by reproducing the issue with a touchpad on macOS 14 and Chrome 127, then trace how canvas panning dispatches the graph's translate event. Done means touchpad panning reliably triggers translate so the custom context menu can be dismissed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100