antvis/G6

drag-element与brush-select(trigger:'drag')同时启用拖拽时俩功能同时生效 #5877

shark-mk posted onGitHub

Describe the bug / 问题描述

G6:5.0.1 drag-element与brush-select(trigger:'drag')同时启用拖拽时俩功能同时生效? image 当拖拽节点时 节点可以正常移动并且brush-select选择窗口一并出现

No response

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

启用brush-select { trigger:'drag' } 和drag-element

然后拖拽节点

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Edge

Additional context / 补充说明

No response


目前的逻辑来看这个行为是正常的,如果你希望拖拽节点时不触发 brush 操作,可以配置 brush-select enable: enable: (event) => event.targetType !== 'node'

posted by Aarebecca 10 months ago

目前的逻辑来看这个行为是正常的,如果你希望拖拽节点时不触发 brush 操作,可以配置 brush-select enable: enable: (event) => event.targetType !== 'node'

非常感谢

posted by shark-mk 10 months ago

Fund this Issue

$0.00
Funded

Pull requests