We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc51839 commit fe2aa11Copy full SHA for fe2aa11
packages/core/src/view/node/BaseNode.tsx
@@ -341,7 +341,7 @@ export abstract class BaseNode<P extends IProps = IProps> extends Component<
341
const timeInterval = curTime - this.startTime
342
const { model, graphModel } = this.props
343
// 这里会有一种极端情况:当网格大小是1或者关闭网格吸附时,用触摸板点击节点会触发拖拽事件导致节点无法选中
344
- // 所以这里在增加了下面的判断:只有状态是拖拽中且时间间隔小于100ms时,才触发点击事件
+ // 当触摸板点击节点时,为了防止误触发拖拽导致节点无法选中,允许在非拖拽状态且时间间隔小于100ms时触发点击事件
345
if (!isDragging && timeInterval > 100) return
346
if (!isDragging) {
347
this.onDragEnd()
0 commit comments