antvis/G6

Double-clicking on an element is partially invalid #6274

North-City posted onGitHub

Describe the bug / 问题描述

上图后的实体,连接线元素在双击的时候有时候会没有触发双击效果. eg: 在监听点的双击事件后,多次尝试双击时触发监听的回调函数不是100%触发. 是内部做过防抖的操作吗?

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS, Windows

Browser / 浏览器

Chrome, Edge

Additional context / 补充说明

No response


目前双击事件的命中规则是前后两次点击的间隔时长不超过 200ms

posted by Aarebecca 8 months ago

目前双击事件的命中规则是前后两次点击的间隔时长不超过 200ms 请尝试下面的demo 看看.多个节点切换,多次.后面总会有些问题. https://codesandbox.io/p/sandbox/autumn-tdd-7nngk4?file=%2Findex.js%3A20%2C11

posted by North-City 8 months ago

@North-City 我尝试了下没有发现你描述的问题,可能是有时候点击到了 Halo 区域,这个部分是不响应事件的

posted by Aarebecca 8 months ago

候点击到了 Halo 区域,这个部分是不响应事件的

了解.可能是双击间隔超了吧. 感谢感谢!

posted by North-City 8 months ago

Fund this Issue

$0.00
Funded

Pull requests