Эх сурвалжийг харах

fix: 修复按住空格键时 不允许框选

jeo young 2 жил өмнө
parent
commit
bb4242e173

+ 1 - 0
src/views/chart/ContentEdit/hooks/useDrag.hook.ts

@@ -63,6 +63,7 @@ export const mousedownHandleUnStop = (e: MouseEvent, item?: CreateComponentType
 // * 框选
 export const mousedownBoxSelect = (e: MouseEvent, item?: CreateComponentType | CreateComponentGroupType) => {
   if (e.which == 2) return
+  if (window.$KeyboardActive?.space) return
 
   mousedownHandleUnStop(e)