X6
X6 copied to clipboard
selecting选中框所选节点和实际选中的节点不一致
Describe the bug
graph配置selecting,点击节点后会套上选中框,左键点击另一个节点且鼠标不松开时,移动当前节点,可以移动,但是会发现选中框在第一个节点,而非当前所选中的节点
Your Example Website or App
https://codesandbox.io/s/lucid-wu-jp38wn?file=/index.html
Steps to Reproduce the Bug or Issue
- 单击节点”hello“
- 左键单击节点”world“且保持鼠标左键处于按下状态,移动”world“节点
- 发现选中框在节点”hello“上,但是节点”world“可以移动,即实际所选节点为”world“,但是选中框却在节点”hello“上
Expected behavior
期望行为应该是:当mousedown时将节点套上选中框,而非mouseup时执行 但是实际行为是:mouseup时执行selecting,造成”我到底选中的是哪个“的歧义
Screenshots or Videos
No response
Platform
- OS:Windows
- Browser: Chrome
Additional context
No response
@NewByVector
请问新版本是不是取消了这个属性,是需要自己添加工具吗,我在新版本没有找到这个属性,新版本的示例中是使用addTools