浏览代码

fix: 调整鼠标操作

Gaokun Wang 5 天之前
父节点
当前提交
42b5b85a0b
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/views/graph/index.ts

+ 2 - 5
src/views/graph/index.ts

@@ -62,7 +62,6 @@ export default class FlowGraph {
       // 开启画布缩放
       // 开启画布缩放
       mousewheel: {
       mousewheel: {
         enabled: true,
         enabled: true,
-        modifiers: ['ctrl', 'meta'],
         minScale: 0.5,
         minScale: 0.5,
         maxScale: 2
         maxScale: 2
       },
       },
@@ -130,8 +129,7 @@ export default class FlowGraph {
       },
       },
       // 开启拖拽平移(防止冲突,按下修饰键并点击鼠标才能触发画布拖拽)
       // 开启拖拽平移(防止冲突,按下修饰键并点击鼠标才能触发画布拖拽)
       panning: {
       panning: {
-        enabled: true,
-        modifiers: 'shift'
+        enabled: true
       },
       },
       resizing: true,
       resizing: true,
       rotating: true,
       rotating: true,
@@ -139,8 +137,7 @@ export default class FlowGraph {
         enabled: true,
         enabled: true,
         multiple: true,
         multiple: true,
         rubberband: true,
         rubberband: true,
-        movable: true,
-        showNodeSelectionBox: true
+        modifiers: 'ctrl'
       },
       },
       snapline: true,
       snapline: true,
       history: true,
       history: true,