NEZ-1221 fix: diagram 类型图 因为鼠标滚轮放大缩小导致悬浮展示有误的问题

This commit is contained in:
zhangyu
2021-11-11 11:34:34 +08:00
parent 6abf76db08
commit ce18288599
3 changed files with 13 additions and 1 deletions

View File

@@ -1448,6 +1448,10 @@ export default {
if (this.$refs.topTool) {
this.$refs.topTool.scaleNum = parseInt(data * 100)
}
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
if (getTopology(this.topologyIndex)) {
getTopology(this.topologyIndex).canvasPos = domRect
}
break
}
case 'locked': {