antvis/G6





The issue has been closed
drag-canvas and brush select do not work properly together. #5793
RackweLLizm posted onGitHub
Describe the bug
behaviors: [
{
type: 'click-element',
multiple: true,
trigger: ['shift']
},
{
key: 'brush-select',
type: 'brush-select',
mode: 'diff',
trigger: 'shift',
style: {
fill: '#00f',
fillOpacity: 0.2,
stroke: '#0ff',
},
},
{
type: 'create-edge',
key: 'create-edge',
trigger: 'click',
enable: false,
animation: true
},
'zoom-canvas',
// 'drag-canvas',
'drag-element'
],
When drag-canvas and brush select are opened at the same time, brush select does not work properly in the graphic.
Your Example Website or App
notFound
Steps to Reproduce the Bug or Issue
1-) Brush Select Active 2-) Drag Canvas Active
Try to make a selection with the Shift key on the canvas, it will not work properly.
Expected behavior
brush select should work
Screenshots or Videos
No response
Platform
Windows Chrome 124 "@antv/g6": "^5.0.0-beta.37",
Additional context
No response