liwei 1 年之前
父節點
當前提交
a9245373dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/editor/controllers/SelectCtrl/index.ts

+ 1 - 1
src/modules/editor/controllers/SelectCtrl/index.ts

@@ -595,7 +595,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
 
 
     //@ts-ignore
-    const yoff = this.store.currStreamCard.$el.getBoundingClientRect().top - this.pageEl?.getBoundingClientRect().top;
+    const yoff = this.controls.pageCtrl.currStreamCard.$el.getBoundingClientRect().top - this.pageEl?.getBoundingClientRect().top;
     this.transferStyle.baseCardTop = yoff / s  + "px";
   
     this.transferStyle.showGizmo = true;