浏览代码

added an explanatory comment

Preet 1 年之前
父节点
当前提交
c552ff4554
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/App.tsx

+ 2 - 0
src/components/App.tsx

@@ -3759,6 +3759,8 @@ class App extends React.Component<AppProps, AppState> {
 
     if (selectedElements.length === 1 && isLinearElement(selectedElements[0])) {
       if (!event[KEYS.CTRL_OR_CMD]) {
+        // If double clicked without any ctrl/cmd modifier on top of a point,
+        // toggle split mode for that point. Else, treat as regular double click.
         const pointUnderCursorIndex =
           LinearElementEditor.getPointIndexUnderCursor(
             selectedElements[0],