feat: 按住鼠标中键 可以拖拽画布

This commit is contained in:
jeo young
2022-12-17 01:32:03 +08:00
parent 0376703fd2
commit dff639e901
2 changed files with 10 additions and 6 deletions
@@ -62,6 +62,8 @@ export const mousedownHandleUnStop = (e: MouseEvent, item?: CreateComponentType
// * 框选
export const mousedownBoxSelect = (e: MouseEvent, item?: CreateComponentType | CreateComponentGroupType) => {
if (e.which == 2) return
mousedownHandleUnStop(e)
// 记录点击初始位置