소스 검색

Merge branch 'dev' of http://124.70.149.18:10880/lianghj/queenshow into dev

liwei 1 년 전
부모
커밋
87b8ae566f
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/editor/components/TipIcons/index.ts
  2. 5 0
      src/modules/editor/controllers/EditorCtrl/index.ts

+ 1 - 1
src/modules/editor/components/TipIcons/index.ts

@@ -48,7 +48,7 @@ import { FontSize } from "./TipIcon";
 export const TipIcons = {
   Move: createTipIcon({
     icons: [IconMove],
-    tips: ["移动模式"],
+    tips: ["移"],
   }),
   Rename: createTipIcon({
     icons: [IconEdit],

+ 5 - 0
src/modules/editor/controllers/EditorCtrl/index.ts

@@ -128,6 +128,11 @@ export class EditorCtrl extends ModuleControl<EditorModule> {
         moveY = e.pageY;
     });
 
+    
+    parent.addEventListener("mouseup",(e:MouseEvent)=>{
+        if(this.state.moveMode) this.moveEditor();
+    })
+
     document.addEventListener("mouseup",(e:MouseEvent)=>{
         if(!this.isMoving()){
             parent.style.cursor = "default";