diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue
index 7ca32d959e..1b307388dd 100644
--- a/frontend/src/components/canvas/components/Editor/index.vue
+++ b/frontend/src/components/canvas/components/Editor/index.vue
@@ -11,6 +11,7 @@
:style="customStyle"
@dragover="handleDragOver"
@mousedown="handleMouseDown"
+ @scroll="canvasScroll"
>
@@ -666,6 +667,9 @@ export default {
} else {
return y
}
+ },
+ canvasScroll(event) {
+ this.$emit('canvasScroll', event)
}
}
}
diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue
index b88cbec477..5315426aa3 100644
--- a/frontend/src/views/panel/edit/index.vue
+++ b/frontend/src/views/panel/edit/index.vue
@@ -100,9 +100,8 @@
@drop="handleDrop"
@mousedown="handleMouseDown"
@mouseup="deselectCurComponent"
- @scroll="canvasScroll"
>
-
+
@@ -696,6 +695,7 @@ export default {
}
},
canvasScroll(event) {
+ console.log('testTop' + event.target.scrollTop)
this.scrollLeft = event.target.scrollLeft
this.scrollTop = event.target.scrollTop
},