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

节点双击触发单击事件 #3716

Closed
ajesses opened this issue Jun 28, 2023 · 2 comments
Closed

节点双击触发单击事件 #3716

ajesses opened this issue Jun 28, 2023 · 2 comments

Comments

@ajesses
Copy link

ajesses commented Jun 28, 2023

问题描述

当双击节点时,会先触发两次单击事件,然后再触发单击事件。

重现链接

https://codesandbox.io/s/dawn-sky-vnj525

重现步骤

  1. 监听节点双击和单击事件
  2. 双击节点
  3. 控制台打印

预期行为

能区分双击和单击事件,双击节点不触发单击事件

平台

  • 操作系统: Windows, Linux
  • 网页浏览器: Google Chrome
  • X6 版本: 1.34.13

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

触发双击事件之前会触发两次 click 事件是标准的事件流,html dom 元素也是这样的。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jun 28, 2024

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 x6-bot bot locked as resolved and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants