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