Răsfoiți Sursa

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

liwei 1 an în urmă
părinte
comite
87b8ae566f

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