Skip to content

Commit fe2aa11

Browse files
DymoneLewisCopilot
authored andcommitted
fix: 优化注释内容
Co-authored-by: Copilot <[email protected]>
1 parent fc51839 commit fe2aa11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/view/node/BaseNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export abstract class BaseNode<P extends IProps = IProps> extends Component<
341341
const timeInterval = curTime - this.startTime
342342
const { model, graphModel } = this.props
343343
// 这里会有一种极端情况:当网格大小是1或者关闭网格吸附时,用触摸板点击节点会触发拖拽事件导致节点无法选中
344-
// 所以这里在增加了下面的判断:只有状态是拖拽中且时间间隔小于100ms时,才触发点击事件
344+
// 当触摸板点击节点时,为了防止误触发拖拽导致节点无法选中,允许在非拖拽状态且时间间隔小于100ms时触发点击事件
345345
if (!isDragging && timeInterval > 100) return
346346
if (!isDragging) {
347347
this.onDragEnd()

0 commit comments

Comments
 (0)