From f75d00eda622b2d3b946739b16a12a1c10d7611d Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Wed, 1 Dec 2021 15:14:24 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=BB=E5=B8=83=E5=87=BA=E7=8E=B0?=
=?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=97=B6=EF=BC=8C=E6=8B=96=E5=85=A5?=
=?UTF-8?q?=E7=9A=84=E7=BB=84=E4=BB=B6=E4=BC=9A=E9=9D=A0=E4=B8=8A=E7=9A=84?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/canvas/components/Editor/index.vue | 7 +++++--
frontend/src/views/panel/edit/index.vue | 4 ++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue
index 43417422d3..a56ec4bd6c 100644
--- a/frontend/src/components/canvas/components/Editor/index.vue
+++ b/frontend/src/components/canvas/components/Editor/index.vue
@@ -813,6 +813,10 @@ export default {
y: 18
}
}
+ },
+ scrollTop: {
+ type: Number,
+ default: 0
}
},
data() {
@@ -1251,9 +1255,8 @@ export default {
}
},
handleDragOver(e) {
- // console.log('handleDragOver-Editor')
this.dragComponentInfo.shadowStyle.x = e.pageX - 220
- this.dragComponentInfo.shadowStyle.y = e.pageY - 90
+ this.dragComponentInfo.shadowStyle.y = e.pageY - 90 + this.scrollTop
this.dragComponentInfo.style.left = this.dragComponentInfo.shadowStyle.x / this.scalePointWidth
this.dragComponentInfo.style.top = this.dragComponentInfo.shadowStyle.y / this.scalePointHeight
if (this.dragComponentInfo.auxiliaryMatrix) {
diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue
index dfd7316478..c25f8668e7 100644
--- a/frontend/src/views/panel/edit/index.vue
+++ b/frontend/src/views/panel/edit/index.vue
@@ -106,7 +106,7 @@
@mouseup="deselectCurComponent"
@scroll="canvasScroll"
>
-
+
@@ -126,7 +126,7 @@
id="canvasInfoMobile"
class="this_mobile_canvas_main"
>
-
+