antvis / antvis/G6

node:dragleave事件在节点内drag时频繁触发

Open
#5,780 2 comments 0 reactions 0 assignees View on GitHub
bug 🐛 v4
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

打开demo,按住一个节点0.8秒。然后拖拽到另一个节点上移动,就能复现,会频繁触发dragleave

### 重现链接

https://codesandbox.io/p/devbox/drga-node-sort-m4y5cl

### 重现步骤

打开demo,按住一个节点0.8秒。然后拖拽到另一个节点上移动,就能复现,会频繁触发dragleave

### 预期行为

拖出节点时只触发一次

### 平台

- 操作系统: Windows
- 网页浏览器:Chrome
- G6 版本: 4.8.21

### 屏幕截图或视频(可选)
![ch10004-5-29](https://github.com/antvis/G6/assets/33613409/0d0a0c0b-1074-438e-b4ae-977e5fa676d7)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in the linked CodeSandbox with G6 4.8.21 on Windows and Chrome: hold a node for 0.8 seconds, then drag over another node. Trace the node drag event handling for repeated dragleave events; done means leaving a node triggers dragleave only once.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.