X6 icon indicating copy to clipboard operation
X6 copied to clipboard

node:selected 在移动端事件无法触发

Open viewweiwu opened this issue 3 years ago • 2 comments

Describe the bug

graph.on('node:selected', () => alert(1)) 在移动端并不会有效果

Your Example Website or App

https://stackblitz.com/edit/typescript-zelme5?file=index.ts

Steps to Reproduce the Bug or Issue

https://stackblitz.com/edit/typescript-zelme5?file=index.ts

Expected behavior

希望能够支持移动端事件触发

Screenshots or Videos

No response

Platform

  • OS: macOs
  • Browser: Chrome
  • Version: 100

Additional context

No response

viewweiwu avatar Apr 26 '22 08:04 viewweiwu

@NewByVector 这个有什么好的方案吗 我这边移动端需要使用

JerryWu1234 avatar Jun 08 '22 02:06 JerryWu1234

这个可以通过extends class然后增加touch方法

JerryWu1234 avatar Jun 09 '22 09:06 JerryWu1234

在移动端验证, node:selected 是可以触发的,请提供一个可以复现的 demo 重新提一个 issue。

NewByVector avatar Jan 30 '23 06:01 NewByVector

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

x6-bot[bot] avatar Jan 31 '24 01:01 x6-bot[bot]