File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
frontend/src/components/canvas Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ export default {
306
306
}
307
307
},
308
308
canvasScroll (e ) {
309
+ this .scrollTop = e .target .scrollTop
309
310
this .$emit (' canvasScroll' , { scrollLeft: e .target .scrollLeft , scrollTop: e .target .scrollTop })
310
311
bus .$emit (' onScroll' )
311
312
},
Original file line number Diff line number Diff line change 121
121
:canvas-id =" canvasId"
122
122
/>
123
123
<!-- 右击菜单 -->
124
- <ContextMenu />
124
+ <ContextMenu />
125
125
126
126
<!-- 对齐标线 -->
127
127
<span
@@ -932,7 +932,7 @@ export default {
932
932
return ! this .linkageSettingStatus && ! this .batchOptStatus
933
933
},
934
934
showGrid () {
935
- if (this .canvasStyleData && this .canvasStyleData .aidedDesign ) {
935
+ if (this .canvasStyleData && this .canvasStyleData .aidedDesign && this . canvasId === ' canvas-main ' ) {
936
936
return this .canvasStyleData .aidedDesign .showGrid
937
937
} else {
938
938
return false
You can’t perform that action at this time.
0 commit comments