Преглед на файлове

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";